15,895,084 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 Python 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 Member 8584763 (Top 146 by date)
Member 8584763
5-Aug-15 6:08am
View
Deleted
What's the wrong it generates empty sql file?
Member 8584763
19-Apr-13 5:35am
View
I solved it. the problem were in the index, but when I changed it to the table name it works fine.
Thank you.
Member 8584763
18-Apr-13 15:16pm
View
No, I don't.
Member 8584763
16-Apr-13 13:58pm
View
I did like the site you put, but still there're no results...
Here's my code.
<pre lang="c#">
private DataTable getData()
{
con.Open();
DataSet1 dss = new DataSet1();
string sql = "select product_id, product_name,product_quantity from product";
SqlDataAdapter da = new SqlDataAdapter(sql, con);
da.Fill(dss);
DataTable dt = dss.Tables["product"];
return dt;
}
private void runRptViewer()
{
reportViewer1.LocalReport.DataSources.Clear(); //clear report
reportViewer1.LocalReport.ReportEmbeddedResource = "Report1.rdlc"; // bind reportviewer with .rdlc
Microsoft.Reporting.WinForms.ReportDataSource dataset = new Microsoft.Reporting.WinForms.ReportDataSource("DataSet1", getData()); // set the datasource
reportViewer1.LocalReport.DataSources.Add(dataset);
reportViewer1.LocalReport.Refresh();
reportViewer1.RefreshReport();
}
</pre>
Member 8584763
16-Apr-13 12:57pm
View
I did like you said but there are no result s
Member 8584763
16-Apr-13 10:41am
View
There're copule of errors:
Error 2 'Microsoft.Reporting.WinForms.ReportViewer' does not contain a definition for 'DataBind' and no extension method 'DataBind' accepting a first argument of type 'Microsoft.Reporting.WinForms.ReportViewer' could be found (are you missing a using directive or an assembly reference?)
Error 1 The name 'Server' does not exist in the current context
Member 8584763
16-Apr-13 2:05am
View
Yes, I've but they're not talking about the problem that I face.
Member 8584763
14-Apr-13 8:47am
View
All I get so far is this.
string sql = "SELECT * FROM product where dat>='" + yy + "' and dat<'" + xx + "'and product_sold>0 and total >0";
SqlDataAdapter dscmd = new SqlDataAdapter(sql, con);
DataSet5 ds = new DataSet5();
dscmd.Fill(ds, "product");
int l = 0;
string ll = Convert.ToString(l);
if (ds.Tables["product"].Rows.Count.ToString() == ll.ToString())
{
MessageBox.Show("لا يوجد تقارير ");
}
else
MessageBox.Show(ds.Tables["product"].Rows.Count.ToString());
Now, I want to pass to report viewer
Member 8584763
14-Apr-13 8:47am
View
All I get so far is this.
string sql = "SELECT * FROM product where dat>='" + yy + "' and dat<'" + xx + "'and product_sold>0 and total >0";
SqlDataAdapter dscmd = new SqlDataAdapter(sql, con);
DataSet5 ds = new DataSet5();
dscmd.Fill(ds, "product");
int l = 0;
string ll = Convert.ToString(l);
if (ds.Tables["product"].Rows.Count.ToString() == ll.ToString())
{
MessageBox.Show("لا يوجد تقارير ");
}
else
MessageBox.Show(ds.Tables["product"].Rows.Count.ToString());
Now, I want to pass to report viewer
Member 8584763
4-Apr-13 14:42pm
View
Yes, I know it's the same, but what am I trying to ask is how to pass query to report viewer?
Member 8584763
4-Apr-13 14:21pm
View
I used to work CR, but now I can't the result on the report?
Member 8584763
1-Apr-13 15:27pm
View
Yes it is code with install crystal report
Member 8584763
1-Apr-13 14:50pm
View
Ye I have
What about your email can I send my project to you
Member 8584763
1-Apr-13 14:01pm
View
The assembly are added automatic.
Can you send me your email to check it?
Member 8584763
1-Apr-13 13:46pm
View
I'm confused, I thought x86 for Windows 32 cpu and x64 for Windows 64 cpu
Who can I distinguish between those assembly?
Member 8584763
1-Apr-13 13:30pm
View
Well, I don't think all the assembly are x86 some of them are x64.
Because this problem don't occur when I deploy it for x64?
How can specify the assembly?
Member 8584763
1-Apr-13 12:03pm
View
x86
Member 8584763
1-Apr-13 11:56am
View
I didn't understand your question?
Member 8584763
1-Apr-13 11:47am
View
There're as followings:
stdole.dll
log4net.dll
Microsoft.VisualC.STLCR.dll
CrystalDecisions.Data.AdoDontNetInterop.dll
CrystalDecision.Shared.dll
CrystalDecision.ReportSource.dll
CrystalDecision.ReportAppServer.Prompting.dll CrystalDecision.Enterprise.Viewing.ReportScource.dll
Member 8584763
1-Apr-13 9:51am
View
I tried to put "Any CPU" and for the deployment I put x64 it works, but when I put x86, it didn't work?
Do you think the problem is CR?
Member 8584763
1-Apr-13 7:47am
View
I used in my project x86 and for deployment I used the same x86.
when I used x64 and for deployment I used the same x64. It didn't give me any error, but I need it to work on x86?
That's when I get the error.
Member 8584763
10-Mar-13 14:29pm
View
What's best for security? Professional?
Member 8584763
10-Mar-13 13:07pm
View
For example I have table called product: productid, productname
My question is . Is it better to create class that has two sets and gets for the id and name then save it in the database? Or creat query for insert the id and name?
Member 8584763
1-Jan-13 7:10am
View
How to check it?
Member 8584763
1-Jan-13 5:32am
View
Yes
Member 8584763
1-Jan-13 4:40am
View
I changed it ANYCPU ,but still I'm getting the same message "This product is designed for x64 platform".
Member 8584763
20-Dec-12 12:23pm
View
OK, but how to deploy it?
Member 8584763
20-Dec-12 7:51am
View
So, it'll be like sql server than but much smaller in size?
Member 8584763
20-Dec-12 7:40am
View
SqlCE, does it have a graphic interface?
Member 8584763
20-Dec-12 6:45am
View
What do you recommend. Because I need to access them. to backup the database or restore it ? Which one better?
Member 8584763
20-Dec-12 6:33am
View
If I use SQLCE. Will it give you the same funtion as sql server management?
Member 8584763
20-Dec-12 6:18am
View
Actually, it's a single user database, and I was planning to install sql server and sql server management on the client PC. After that, I'll install my app, but the problem what if the sql server didn't run. what other database I should use? I heard of Sqlserver compact?
Member 8584763
20-Dec-12 5:55am
View
The app can't run without it. How come it's their choice?
Member 8584763
20-Dec-12 5:38am
View
Ok, suppose that I did the setup to my app, then on client PC ,I should install sql server, if it's not exist? and do I need to install sql server management?
Member 8584763
19-Dec-12 10:32am
View
Nothing changes after commenting it?
Member 8584763
9-Dec-12 5:54am
View
Where to get the messing files
Crystal_Database_Access2003.msm
Crystal_Database_Access2003_enu.msm
Crystal_regwiz2003.msm
Microsoft_VC80_ATL_x86.msm
policy_8_0_Microsoft_VC80_ATL_x86.msm
Member 8584763
8-Dec-12 5:34am
View
Even I double click on it .It doesn't show anything?
Member 8584763
8-Dec-12 5:20am
View
what's the relevant code file? where to find it
Member 8584763
8-Dec-12 4:56am
View
there are the warnings:
Warning 1 Value does not fall within the expected range.
Warning 4 ResX file Value does not fall within the expected range. Line 128, position 5. cannot be parsed. 128 0
Warning 5 Could not determine the dependencies of the COM reference "CRQUERYENGINE". Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)) pharmcy
Member 8584763
8-Dec-12 4:41am
View
No,the code works fine ,but when I open the design it gives this message
value doesn't fall within the expected range
Member 8584763
8-Dec-12 4:24am
View
the warning is value doesn't fall within the expected range line 0?
Member 8584763
8-Dec-12 3:28am
View
Still the same problem? What do you think?
Member 8584763
8-Dec-12 3:02am
View
<pre lang="c#">
namespace pharmcy
{
public partial class MDIParent3 : Form
{
// private int childFormNumber = 0;
SqlConnection con=new SqlConnection ();
SqlCommand cmd=new SqlCommand ();
int i=1;
string a = "l.bak";
string x = @"c:\SQLBackup\";
public MDIParent3()
{
InitializeComponent();
}
private void ShowNewForm(object sender, EventArgs e)
{
Sale s = new Sale();
s.MdiParent = this;
s.Show();
}
private void OpenFile(object sender, EventArgs e)
{
deleteproduct s = new deleteproduct();
s.MdiParent = this;
s.Show();
}
private void SaveAsToolStripMenuItem_Click(object sender, EventArgs e)
{
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
saveFileDialog.Filter = "Text Files (*.bak)|*.bak|All Files (*.*)|*.*";
if (saveFileDialog.ShowDialog(this) == DialogResult.OK)
{
string FileName = saveFileDialog.FileName;
}
}
private void ExitToolsStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
}
private void CutToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void CopyToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void PasteToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void CascadeToolStripMenuItem_Click(object sender, EventArgs e)
{
LayoutMdi(MdiLayout.Cascade);
}
private void TileVerticalToolStripMenuItem_Click(object sender, EventArgs e)
{
LayoutMdi(MdiLayout.TileVertical);
}
private void TileHorizontalToolStripMenuItem_Click(object sender, EventArgs e)
{
LayoutMdi(MdiLayout.TileHorizontal);
}
private void ArrangeIconsToolStripMenuItem_Click(object sender, EventArgs e)
{
LayoutMdi(MdiLayout.ArrangeIcons);
}
private void CloseAllToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach (Form childForm in MdiChildren)
{
childForm.Close();
}
}
private void backupToolStripMenuItem_Click(object sender, EventArgs e)
{
backup b = new backup();
b.ShowDialog();
}
public void backup()
{
string iii=".bak";
string xxx = dateTimePicker4.Text;
string y = Convert.ToString(i);
string format = ("yyyy-MM-dd");
DateTime f = Convert.ToDateTime(xxx);
string yy = f.ToString(format);
bool ii = true;
int number = 1;
x += yy;
x += iii;
bool bBackUpStatus = true;
Cursor.Current = Cursors.WaitCursor;
try
{
con.Open();
if (Directory.Exists(@"c:\SQLBackup"))
{
while (ii)
{
if (!File.Exists(x))
{
ii = false;
bBackUpStatus = true;
break;
}
else
{
y = (number + 1).ToString();
x += y;
bBackUpStatus = false;
}
}
/*if (File.Exists(@"c:\SQLBackup\wcBackUp1.bak"))
{
if (MessageBox.Show(@"Do you want to replace it?", "Back
Member 8584763
2-Dec-12 5:13am
View
Do you have a link or something .Because I searched and didn't find a thing?
Member 8584763
28-Nov-12 7:39am
View
I installed the runtime crystal report? will it be OK?
Member 8584763
27-Nov-12 9:07am
View
I just installed on the client pc, crystal report will work?
Member 8584763
23-Nov-12 5:18am
View
I tried this one
[STAThread]
static void Main()
{
//AddGlobalHandlers();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//Application.Run(new MainForm());
Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
Application.Run(new MainForm());
}
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
MessageBox.Show("CurrentDomain_UnhandledException: " + e.ExceptionObject.ToString());
}
static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
{
MessageBox.Show("Application_ThreadException: " + e.Exception.Message);
}
and it works
Thanks .
Member 8584763
23-Nov-12 5:11am
View
I tried to put try and catch ,but nothing happends
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MDIParent3());
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
Member 8584763
21-Nov-12 6:06am
View
There's no option about prerequisite in publish tab
Member 8584763
18-Nov-12 10:45am
View
When I installed the font on my PC. I tried using in notepad and it works, but when visual studio I tried to change the font propriety for a textbox ,it gave this message
only true type fonts are supported . what do you think the problem?
Member 8584763
18-Nov-12 9:51am
View
I installed it in window/font. Then in visual studio I chose the the font that I added and it gave me this message.
only true type fonts are supported
Member 8584763
18-Nov-12 8:35am
View
I did and it gave this message
only true type fonts are supported
Member 8584763
18-Nov-12 7:52am
View
how can I you add it to your project?
Member 8584763
18-Nov-12 7:28am
View
I read online if you have a barcode font you can apply it to the text the you have. But I've never used barcode font?
My question is how to use it?
Member 8584763
18-Nov-12 6:47am
View
how to can I use it?
Member 8584763
18-Nov-12 6:23am
View
I've barcode font how can I apply it to textbox?
Member 8584763
18-Nov-12 5:52am
View
I developing point of sale app and I need to print invoice and the invoice must has barcode which is invoice Id?
How can I convert invoice Id to barcode Image?
Member 8584763
7-Nov-12 4:03am
View
are you still there?
Member 8584763
6-Nov-12 12:53pm
View
I already updated could you look at it?
Member 8584763
6-Nov-12 12:52pm
View
still in this line
adp.Fill(tab);
it gives me
Conversion failed when converting date and/or time from character string.
Member 8584763
6-Nov-12 12:08pm
View
Ok ,but now do you understand the question ?
Member 8584763
6-Nov-12 11:35am
View
I made i solution to explain
Member 8584763
6-Nov-12 10:53am
View
if it's possible it'll make you code easier.
Member 8584763
6-Nov-12 10:53am
View
if it's possible it'll make you code easier.
Member 8584763
6-Nov-12 10:10am
View
Well, it goes fine till this line
SqlDataAdapter ad1 = new SqlDataAdapter(cmd);
ad1.Fill(dy, "product");
it said Conversion failed when converting date and/or time from character string. and their data type in the database datetime?
Member 8584763
6-Nov-12 8:16am
View
copy error
cmd=new SqlCommand ( "SELECT dat , product_id FROM market where dat >= '" + fro + "' and dat<='"+to+"' ",con);
How to send from sqldatareader to dataset?
Member 8584763
2-Nov-12 11:45am
View
it's giving me the same results
in sql server
Product_id dat
101 2012-11-1
102 2012-11-1
in c#
product_id dat
100 2012-10-10
101 2012-11-1
102 2012-11-1
Member 8584763
2-Nov-12 7:40am
View
still the same problem it gives me all dates?
Member 8584763
2-Nov-12 7:16am
View
It gave me error in
ad1.Fill(ds1);
Conversion failed when converting date and/or time from character string.
Member 8584763
2-Nov-12 6:35am
View
in sql server
Product_id dat
101 2012-11-1
102 2012-11-1
in c#
product_id dat
100 2012-10-10
101 2012-11-1
102 2012-11-1
Member 8584763
2-Nov-12 6:31am
View
the date result it doesn't match up?
Member 8584763
2-Nov-12 6:29am
View
NO, it's the same format like in the database
Member 8584763
2-Nov-12 6:23am
View
Deleted
When I run it in sql server it recognize the conditions ,but in the code it doesn't. How to put pictures?
Member 8584763
1-Nov-12 15:13pm
View
where I took the code it was used like this
string from_date = Request.QueryString["fromdate"];
string to_date = Request.QueryString["todate"];
Member 8584763
1-Nov-12 14:50pm
View
is there another way beside using this
string from_date = Request.QueryString["fromdate"];
string to_date = Request.QueryString["todate"];
Member 8584763
1-Nov-12 14:29pm
View
I tried both of the methods, but it didn't work?
Member 8584763
1-Nov-12 14:06pm
View
the website talks about datetime my data type is date?
Member 8584763
1-Nov-12 13:56pm
View
how?
Member 8584763
1-Nov-12 13:52pm
View
Well, I think the problem in the strings it doesn't recognize them. Because dat type is date.
Member 8584763
1-Nov-12 13:26pm
View
Also, I found this code and did some changes on it ,but the problem is it gives me all the date?
private void button1_Click(object sender, EventArgs e)
{
string from_date = textBox1.Text ;
string to_date = textBox2.Text;
SqlConnection con=new SqlConnection (@"Data Source=.\Ahmed;Initial Catalog=Market;Integrated Security=True");
String data = "SELECT * from Product where dat>='"+from_date+"' and dat<='"+to_date+"'";
con.Open();
SqlDataAdapter ad1 = new SqlDataAdapter(data, con);
DataSet ds1 = new DataSet();
ad1.Fill(ds1);
ReportDocument cr = new ReportDocument();
cr.Load(@"C:\Users\Ahmed\Documents\Visual Studio 2010\Projects\WindowsFormsApplication9\WindowsFormsApplication9\CrystalReport4.rpt");
cr.SetDataSource(ds1.Tables["product"]);
crystalReportViewer1.ReportSource = cr;
}
Member 8584763
1-Nov-12 10:07am
View
I don't actually ,but if there using c# mainly?
Member 8584763
1-Nov-12 8:37am
View
is there another way?
Member 8584763
1-Nov-12 8:36am
View
using c# app
Member 8584763
31-Oct-12 14:17pm
View
OK, thank you
Member 8584763
31-Oct-12 13:56pm
View
what about sending to crystal report?
Member 8584763
31-Oct-12 13:55pm
View
what about sending to crystal report?
Member 8584763
31-Oct-12 7:39am
View
It seems it like this ,but can I send this dataset to crystal report.
DataGridView1.DataSource = ds; // dataset
DataGridView1.DataMember = "TableName";
Member 8584763
27-Oct-12 18:00pm
View
The solution post solved my problem, but when I tried MDI parent, the second form run in the empty space
But when I tried to another tool strip the second form runs behind the strip?
Member 8584763
27-Oct-12 14:20pm
View
I tried MDI parent, the second form run in the empty space
But when I tried to another tool strip the second form runs behind the strip?
Member 8584763
27-Oct-12 14:11pm
View
Thanks ,it worked. Is it possible the second form to be displayed in the first form like mdiparent?
Member 8584763
27-Oct-12 14:00pm
View
Still the second one runs before the first one.
Member 8584763
29-Sep-12 6:27am
View
I think , the problem in the first step, when I did . I didn't do completely .Because there's no document to explain this step cause I'm using sql server 2012 the step is:
On the Surface Area Configuration for Services and Connections page, expand Database Engine, click Remote Connections, click Local and remote connections, click the appropriate protocol to enable for your environment, and then click Apply.
Member 8584763
28-Sep-12 10:24am
View
I tried login from client sql server to server sql server. using IP address of the server, I create user name and password for sql authentication, but still getting error code 184556. what do you think..
Member 8584763
28-Sep-12 10:20am
View
I changed server-pc, still getting the same error 18456
Member 8584763
28-Sep-12 8:32am
View
I did it all ,but it's the same message. what do you think is the problem..
Member 8584763
28-Sep-12 7:54am
View
I still get the same message .I'll try to change client PC to check...
Member 8584763
28-Sep-12 7:16am
View
I changed server name insted of ip address I put it the server name ,it give error 26
Member 8584763
28-Sep-12 7:15am
View
I changed the connection string to:
data source=192.168.1.100;initial catalog=supermarket;integrated security=true;uid=;pwd;timeout.
it said can't connect to the ipaddress. Error number 18456
Member 8584763
28-Sep-12 6:52am
View
it said can't connect to the ipaddress. Error number 18456
Member 8584763
28-Sep-12 6:41am
View
it said login failed ,the login from untrusted domain. I have , but the last part is not clear.
Member 8584763
28-Sep-12 6:29am
View
it said time out??
Member 8584763
28-Sep-12 6:16am
View
My connection string is a class which has my string connection:
internal static string x = @"Data Source=.\sqlser;Initial Catalog=SuperMarket;Integrated Security=True";
Member 8584763
28-Sep-12 6:12am
View
I trying to connect from c# to sql server.
Member 8584763
28-Sep-12 6:09am
View
yes, I can ping them both using fix IP address
Member 8584763
28-Sep-12 6:02am
View
I did exactly like you said, when I run the app it said there's not like userId
Member 8584763
28-Sep-12 6:01am
View
the first step is done , the second I download it ,but when I run it .It despair all the time.
My connection string is a class which has my string connection:
internal static string x = @"Data Source=.\sqlser;Initial Catalog=SuperMarket;Integrated Security=True";
Member 8584763
28-Sep-12 3:18am
View
finally , I manged to ping them , but still when I try connect my c# app to sql database server. it gives me the same message, what do you think is the problem?
Member 8584763
28-Sep-12 1:22am
View
I manged to make the client ping the server ,but the server doesn't ping the client , do you think it's because of the firewall?
Member 8584763
27-Sep-12 22:35pm
View
Well, I put fix IP address for the server and fix IP address for the client , and I tried to ping the server from the client ,but it said request time out. they both have the netmask. and ip address just like you put them.
So , what do you think is the problem ?
Member 8584763
27-Sep-12 9:50am
View
I checked ,but it still the same , do you think I should put the server IP address in the client internet protocol?
Member 8584763
27-Sep-12 9:19am
View
OK, I should change the Ip address in client and put like the server IP, right?
Member 8584763
27-Sep-12 9:10am
View
I ping the server Ip from the client .It said time out
Member 8584763
27-Sep-12 9:07am
View
still the same
Member 8584763
27-Sep-12 9:00am
View
I did the three steps , still got the same problem
Member 8584763
27-Sep-12 8:50am
View
then I should use switch in that case
Member 8584763
27-Sep-12 8:44am
View
I used cat-6 in that case it won't work ,right?
Member 8584763
27-Sep-12 8:20am
View
just this is there a different If I connect them directly through cable or switch?
Member 8584763
27-Sep-12 8:16am
View
what do you mean exeption tab SQL-Browser and SQL-server exes is added.
Member 8584763
27-Sep-12 8:13am
View
it's said time out, could it be that I connect them directly.
Member 8584763
27-Sep-12 8:01am
View
yes
Member 8584763
27-Sep-12 7:58am
View
last step isn't clear
it will be easy to test
and also make sure that Firewall settings are configured properly (you have added exes in Exception-tab) and sql-agent service is running on server-pc
Member 8584763
27-Sep-12 7:50am
View
I tried a switch and connect them directly .
How to ping the server
Member 8584763
27-Sep-12 7:42am
View
I did almost exactly like it said in step one except
In the TCP/IP Properties dialog box, on the IP Addresses tab, several IP addresses appear in the format IP1, IP2, up to IPAll. One of these is for the IP address of the loopback adapter, 127.0.0.1. Additional IP addresses appear for each IP Address on the computer. Right-click each address, and then click Properties to identify the IP address that you want to configure.
This time I connect them directly , I still get the same message
Member 8584763
27-Sep-12 7:01am
View
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
System.Exception {System.Data.SqlClient.SqlException}
Member 8584763
27-Sep-12 6:09am
View
the connection string is correct
-TCP/IP is enabled.
-firewall ,I did open a port for remote access.
-if I tried connect them directly will it make a different
Member 8584763
26-Sep-12 12:05pm
View
what do you suggest?
Member 8584763
26-Sep-12 9:02am
View
This is my connection string:
internal static string x = @"Data Source=.\Ahmed;Initial Catalog=SuperMarket;Integrated Security=True";
in your function I'm using connection string not configuration manager
Member 8584763
26-Sep-12 8:08am
View
my app is desktop , will it be different
Member 8584763
26-Sep-12 4:37am
View
is it like remote access?
Member 8584763
26-Sep-12 4:28am
View
it's sql server.
Member 8584763
26-Sep-12 4:10am
View
i've c# app want to update and insert on database on different computer which has the database, and I connect to it though switch
Member 8584763
11-Sep-12 19:29pm
View
Yes, I meant multi-users,
Member 8584763
11-Sep-12 16:29pm
View
I've the basic ,but I'm confused whether to user client server database, or there
is another way? cause I'm not good client server and multithreading
Member 8584763
11-Sep-12 15:51pm
View
any idea,come on
Member 8584763
11-Sep-12 15:51pm
View
any idea,come on
Member 8584763
11-Sep-12 15:48pm
View
even if I used a switch , the other computers and to access the central database.
Do I need server client app?
Member 8584763
11-Sep-12 15:48pm
View
even if I used a switch , the other computers and to access the central database.
Do I need server client app?
Member 8584763
9-Sep-12 21:36pm
View
I'm sorry for taking too long with you, but stock_code isn't null I checked.
Member 8584763
9-Sep-12 21:25pm
View
I tried the debug mode, it gets caught in catch.
Member 8584763
9-Sep-12 21:22pm
View
I think object sender.
Member 8584763
9-Sep-12 21:18pm
View
If I put the hole code would it help?
Member 8584763
9-Sep-12 21:17pm
View
system.nullreferenceexpception:object reference not set to an instance of an object
it's say in these line: in the call and in the condition of the function
exist = checking(stock_code);
if (dataGridView1.Rows[j].Cells[0].Value.ToString () == x.ToString ())
Member 8584763
9-Sep-12 21:07pm
View
that's right, the call is inside try and catch. it's given me error like this
Object reference not set to an instance of an object. in catch
Member 8584763
9-Sep-12 20:58pm
View
this function always gives me false, even if the value in the data grid view
Member 8584763
9-Sep-12 20:28pm
View
not all code paths return a value
Member 8584763
9-Sep-12 10:54am
View
The problem that I want to call amount() when the event in the text box finshed. So the total will be right ,but now, it's giving me big numbers and the formal in amount() I think it's correct. So when I should call it?
Show More