Quick Search


Tibetan singing bowl music,sound healing, remove negative energy.

528hz solfreggio music -  Attract Wealth and Abundance, Manifest Money and Increase Luck



 
Your forum announcement here!

  Free Advertising Forums | Free Advertising Board | Post Free Ads Forum | Free Advertising Forums Directory | Best Free Advertising Methods | Advertising Forums > Post Your Free Ads Here in English for Advertising .Adult and gambling websites NOT accepted. > MLM and Network Marketing Ads:

MLM and Network Marketing Ads: This section is for posting your free classified ads about MLM, downline, upline, matrix, affiliate programs, and other opportunities to help you earn money at home on the Internet. NO PORN ALLOWED!

Reply
 
Thread Tools Display Modes
Old 04-05-2011, 08:23 AM   #1
language34
Command Sergeant Major
 
Join Date: Mar 2011
Posts: 249
language34 is on a distinguished road
Default Office Professional Connecting To Sql Server 2008

Server2008 n Howdy Worldn New D.I.C Head Posts:
29 Joined:
03-February 09
I'm obtaining problems connecting to your AdventureWorks_Data.mdf. I can connect to a report server temp db but there isn't a information in it.
By using similar code to connect to AdventureWorks_Data.mdf provides an error "network related or instance specific error occurred
while connecting to SQL Server". I don't get it as the temp db connect works (see // above actual ran code). Help Please!
public void LoadSql() { // string connectionString = @"Provider=System.Data.SqlClient; // Persist Security Info=False; // Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS2\MSSQL\DATA\ReportServer $SQLEXPRESS2TempDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True; // Integrated Security=SSPI; // Trusted_Connection=TRUE; // Application Name=SampleCSharpApplication"; // string connectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS2\MSSQL\DATA\ReportServer $SQLEXPRESS2TempDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"; string connectionString = @"Data Source=Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS2\MSSQL\DATA\AdventureWor ks_Data.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"; string sqlSel = @"Select * From Address"; SqlConnection conndb = new SqlConnection(connectionString); //make a OleDbConnection object DataSet ds = new DataSet(); //make a DataSet object try SqlDataAdapter myAdapter = new SqlDataAdapter(sqlSel,Genuine Windows 7, conndb); //Using the OleDbDataAdapter execute the query myAdapter.Fill(ds,Office 2010 Sale, "Address"); //Fill the DataSet with the Table 'Customers' gridColors.DataSource = ds.Tables["Address"]; myAdapter.Dispose(); catch (Exception e) MessageBox.Show("Error in connecting! " + e.ToString(),Office Professional, "Error"); finally conndb.Close(); //Close the OleDbConnection conndb.Dispose(); }
This post has been edited by getajob1: 20 February 2009 - 03:37 PM
language34 is offline   Reply With Quote

Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 05:50 AM.

 

Powered by vBulletin Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Free Advertising Forums | Free Advertising Message Boards | Post Free Ads Forum