16,004,479 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Pouria Polouk (Top 30 by date)
Pouria Polouk
20-Apr-20 4:48am
View
Sorry about that
Pouria Polouk
4-Mar-19 13:00pm
View
Thank you
Pouria Polouk
4-Mar-19 13:00pm
View
Thank you, I'll consider your solution
Pouria Polouk
4-Mar-19 9:15am
View
Thank you
Pouria Polouk
28-Feb-19 14:24pm
View
thank you.
But how can I select some fields from the table with method?
Pouria Polouk
23-Feb-19 0:20am
View
Thank you for your attention.
Despite writing the Default part, there are three errors related to the tables:
Cannot implicitly convert type 'System.Data.Linq.Table<windowsapp.hvl85>' to 'System.Data.Linq.Table<system.data.linq.itable>'
Cannot implicitly convert type 'System.Data.Linq.Table<windowsapp.hvl86>' to 'System.Data.Linq.Table<system.data.linq.itable>'
Cannot implicitly convert type 'System.Data.Linq.Table<windowsapp.hvl87>' to 'System.Data.Linq.Table<system.data.linq.itable>'
Pouria Polouk
10-Jul-17 17:12pm
View
I have used json_encode function before.
But it didn't work.
I don't know why!?
Pouria Polouk
10-Jul-17 16:44pm
View
Thank you, but I think we can return a value to JQuery using "echo" in PHP.
isn't it like this?
In fact my code doesn't work as following:
if(data=="invalid_file")
alert("the image size doesn't match...");
Pouria Polouk
15-Sep-16 17:27pm
View
thank you for your help
Pouria Polouk
15-Sep-16 14:47pm
View
yes, But it's not enough.
I want more examples.
Pouria Polouk
15-Sep-16 14:38pm
View
Could you tell me if you know a perfect resource of examples about "grant alter"?
I think that Microsoft's samples aren't enough.
Pouria Polouk
15-Sep-16 14:05pm
View
May I ask a question?
Pouria Polouk
15-Sep-16 4:44am
View
thank you dear friend
Pouria Polouk
14-Sep-16 13:07pm
View
Unfortunately I hadn't studied the documentation.
Thank you so much Richard.
Solved.
Pouria Polouk
14-Sep-16 12:35pm
View
Yes, I understand.
But when I want to use some of db_securityadmin role permissions I have to be in db_owner role either.
For example in the code below:
EXEC sp_addrolemember 'db_datareader','otherUser'
When I wanna run it, just db_securityadmin role is not enough and I have to be in db_owner too. On the other hand when I am in db_owner role, I’ll have the access to higher permissions’ level uncontrollably, which this must NOT happen!
what's the solution?
Pouria Polouk
9-Sep-16 14:18pm
View
thank you
Pouria Polouk
8-Sep-16 12:57pm
View
Thank you for your attention.
But I don't think you get my question!
Pouria Polouk
8-Sep-16 12:45pm
View
Sorry, I'm not convinced completely.
What do you mean by "unnecessary"?
So why does Microsoft use both of them?
Pouria Polouk
8-Sep-16 11:52am
View
Both of them work.
And both grant permission to the all objects on database level.
I just don’t know the difference.
Pouria Polouk
7-Sep-16 13:48pm
View
thank you so much.
there is no enough example.
Pouria Polouk
1-Sep-16 18:07pm
View
thank you
Pouria Polouk
22-Feb-16 9:40am
View
I don't want to use getline method.
thank you so much... solved(ios::binary).
Pouria Polouk
21-Feb-16 14:00pm
View
#include<iostream>
#include<conio.h>
#include<fstream>
using namespace std;
int main(){
ifstream myfile;
myfile.open("c:\\new.txt", ios::in);
myfile.seekg(0, ios::end);
int filesize = myfile.tellg();
char *content = new char[filesize + 1];
myfile.seekg(0, ios::beg);
myfile.read(content, filesize);
content[filesize] = '\0';
cout << content;
delete[] content;
myfile.close();
_getch();
return 0;
}
File content:
this is a test
this is a test
Pouria Polouk
21-Feb-16 13:40pm
View
The problem is still there.
But the number of special characters is decreased!
Pouria Polouk
21-Feb-16 8:08am
View
thank you
Pouria Polouk
21-Feb-16 8:07am
View
thank you
Pouria Polouk
29-Jan-16 2:25am
View
thank you so much
Pouria Polouk
13-Jan-16 5:20am
View
thank you so much dear friend
Pouria Polouk
13-Jan-16 5:11am
View
thanks.
that's right.
I was mistaken.
Pouria Polouk
3-Jan-16 16:11pm
View
hi guys,
thanks for your attention.
Show More