Persist ConnectionString

Apr 3, 2007

Hello All,



I have changed connection string property of connectionmanger at runtime and saved package.But my new connectionstring is not persisting, i am getting my old connection string after reload package .



ConnectionManager cm = package.Connections[test.ConnectionManagerID];



cm.ConnectionString = @"C:Test.csv";



app.SaveToDtsServer(package, null,

@"File SystemDupaco Load Next Best.dtsx", "CIRCLE");



How can I save new connection string?.



Please help me.





Thanks



Subin

View 1 Replies


ADVERTISEMENT

Persist Progress Tab?

Mar 24, 2006

is there a way to capture what gets written to the progress tab to a table, or is it overwritten on each execution as xml somewhere so it can be saved kind of like an odometer? the mission is to be able to audit the results of a load, or even if it doesnt turn out to be a load, then document the run.

similarly, is there a way to watch what executes to see what actually runs during a merge join transform, iow, something that exposes ssis to trace? how do i find it?

thanks

drew

View 2 Replies View Related

Errors Persist In New Database(s)

Apr 19, 2008

I am getting this error condition on two different machines, so I think it is something I am leaving out. The database is being created with a script (pasted at end of this post) executed within SQL Management Express 2005. The database shows up in the database tree but is not expandable, i.e. no plus sign. If I try to get Properties, the following sequence:Database cannot be opened due to inaccessible files or insufficient memory or disk space Error 945 TITLE: Microsoft SQL Server Management Studio Express------------------------------Cannot show requested dialog.------------------------------ADDITIONAL INFORMATION:Cannot show requested dialog. (Microsoft.SqlServer.Express.SqlMgmt)------------------------------An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)------------------------------Database 'Cart1' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details. (Microsoft SQL Server, Error: 945)For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.3042&EvtSrc=MSSQLServer&EvtID=945&LinkId=20476==============================================I had been using "Cart" as the name, saw a reference that said not to use the same name in a new database. The new name is "Cart1"; no help.In the application,  I initially get the "cannot find the physical file, but if I Refresh the page, I get: "Cannot open database "Cart1" requested by the login. The login failed. Login failed for user 'GW20Bob'Please assist in this. I will test or answer any questions I haven't supplied.This and associated files are from Build Your Own ASP.NET 2.0 Web Site Using CSharp And VB by Doug Lowe if anyone is familiar without.Script======USE masterGOCREATE DATABASE Cart1ON (NAME=Cart,    FILENAME = 'C:APPApp_DataCart1.mdf',    SIZE=10 )GOUSE Cart1CREATE TABLE Categories (  catid VARCHAR(10)  NOT NULL,  name  VARCHAR(50)  NOT NULL,  [desc]  VARCHAR(MAX) NOT NULL,  PRIMARY KEY(catid) )  GOCREATE TABLE Products (  productid VARCHAR(10)  NOT NULL,  catid     VARCHAR(10)  NOT NULL,  name      VARCHAR(50)  NOT NULL,  shorttext VARCHAR(MAX) NOT NULL,  longtext  VARCHAR(MAX) NOT NULL,  price     MONEY        NOT NULL,  thumbnail VARCHAR(40)  NOT NULL,  image     VARCHAR(40)  NOT NULL,  PRIMARY KEY(productid),   FOREIGN KEY(catid) REFERENCES Categories(catid) )  GOCREATE TABLE FeaturedProducts (  productid   VARCHAR(10)  NOT NULL,  featuretext VARCHAR(MAX) NOT NULL,  saleprice   MONEY        NOT NULL,  PRIMARY KEY(productid),  FOREIGN KEY(productid) REFERENCES Products(productid) )  GO    CREATE TABLE Customers (  email     VARCHAR(50)  NOT NULL,  lastname  VARCHAR(50)  NOT NULL,  firstname VARCHAR(50)  NOT NULL,  address   VARCHAR(50)  NOT NULL,  city      VARCHAR(50)  NOT NULL,  state     VARCHAR(2)   NOT NULL,  zipcode   VARCHAR(9)   NOT NULL,  phone     VARCHAR(20)  NOT NULL,  PRIMARY KEY(email) )  GO    CREATE TABLE Orders (  ordernum  INT           IDENTITY,  orderdate SMALLDATETIME NOT NULL,  custemail VARCHAR(50)   NOT NULL,  subtotal  MONEY         NOT NULL,  salestax  MONEY         NOT NULL,  shipping  MONEY         NOT NULL,  total     AS (subtotal + salestax + shipping),  PRIMARY KEY(ordernum),   FOREIGN KEY(custemail) REFERENCES Customers(email) )  GO    CREATE TABLE OrderItems (  ordernum  INT          NOT NULL,  productid VARCHAR(10)  NOT NULL,  name      VARCHAR(50)  NOT NULL,  price     MONEY        NOT NULL,  quantity  SMALLINT     NOT NULL,  total     AS (price * quantity),  PRIMARY KEY(ordernum, productid),   FOREIGN KEY(ordernum) REFERENCES Orders(ordernum),  FOREIGN KEY(productid) REFERENCES Products(productid) )  GO

View 2 Replies View Related

How To Persist Cookie Through HttpWebRequest In CLR? Thanks

Mar 20, 2007

I put HttpWebRequest in a CLR so I can call website in my SQL. In same calls, I need pass cookies from the previous call to the next call. So I am thinking I can do this in two ways:

1, store the cookiecontainer somewhere , but not sure if CLR allow me to do that ,

2, return the cookiecontainer, and send it to the next call from SQL, this way I need use cookie string, is there a function to serialize a cookiecontainer?



thanks

View 2 Replies View Related

Do Pass Thru Query Connections Persist?

Oct 18, 2006

I have an Access 2003 front end with a SQL Server 2005 Express backend. I was thinking of using pass thru queries as row sources for some combo boxes such as states/countries for addresses. My question is do pass thru queries, when used as a row source, keep a connection to the DB server? Or do they get the data, disconnect and populate the control?

I realize I could populate the controls with code, but this seems less hassle and will overcome the ValueList size limit if needed.

View 9 Replies View Related

Can SQL Service Broker Persist Requests?

May 17, 2007

I have a scenario where we want something like a message bus. We can have multiple clients sending in events and would like a way to

i) persist those events

ii) Send out the notifications to the subcribers (this would be some C# services)



What is the best way to do this? I know that we can build something from scratch using WCF Publish-Subscribe. But i was interested in knowing if I can leverage SQL Service Broker to do the work.



View 8 Replies View Related

How To Persist Title Of 'modal Dialog' During Postback

Oct 18, 2007

Hi,

Please give me some idea to persist or set title of modal dialog during postback.

The title of modal dialog is going lost whenever postback happen on modal dialog.

document.title is not working after postback.


Thanks,
Sandeep, India

View 1 Replies View Related

FTP Authentication Information Does Not Persist When Deploying Packages

Jan 18, 2006

I am trying to deploy a SSIS package which includes a FTP task. It works fine on the machine it was developed . When deploying the package on a production server, all other config changes work, but the FTP task is failing, with authentication error.



any help on how to persist the data would be appreciated

thanks

View 1 Replies View Related

Advanced Editor Randomly Fails To Persist New Column Width

Sep 4, 2007

This one has set me back many, many hours on this project; it's about got me ready to dump SSIS & just roll a custom .NET solution in C#.

I need to create import packages for quite a few very wide flat files (130 - 180+ columns, not my design). Many of these columns have data > 50 characters long.

I change column widths on the data flow source using the Advanced Editor, via Input and Output Properties ==> Flat File Source Output ==> External Columns.

About 50% of the time, the changes vanish after clicking OK to dismiss the Advanced Editor. There is no warning message or output announcing that the editor failed to persist its changes, or that it set some columns' properties back to the defaults, or why. The column's widths just silently revert back to 50.

If the cause and resolution aren't known, does anyone know of a way to accomplish any of the following workarounds?


Create a data source connection by importing an external text schema defining the flat file's column names, data types and sizes, or
Change a property on multiple source columns en-masse, or...

Get at a text version of the file containing the Data Flow Component's definition, so we can edit wide import schemas without racking up thousands of mouse-clicks?Thanks! A virtual cheeseburger to anyone with answers.

View 7 Replies View Related

What Different Are There Between ConnectionString (Part 1) And ConnectionString (Part 2) In Web.config

Apr 12, 2006

What different are there between connectionString (Part 1) and connectionString (Part 2) in web.config
The CCWW is my PC's name, normally I can connect to the database ASPNETDB.MDF correctly either Part 1 or Part 2 in a web page,After I open Database Explorer panel and browse ASPNETDB.MDF, I can't connect to database using Part 2 when I open a webpage in Microsoft Visual Web Developer 2005 Express Edition,but I can correctly open a webpage using Part 1 after I open Database Explorer panel.
What different are there between connectionString (Part 1) and connectionString (Part 2) in web.config?
I guess  while I use Part 1 to connect, maybe it will be cancel exclusive method of the database  ASPNETDB.MDF first, but when I connect to database using Part 2, maybe two programms both Part 2 and Database Explorer visit ASPNETDB.MDF at the same time!
 
--------------------------------------Part 1------------------------------------------------------------------------<add name="MyConnect" connectionString="Data Source=.SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|ASPNETDB.MDF"          providerName="System.Data.SqlClient" />  --------------------------------------Part 1------------------------------------------------------------------------
--------------------------------------Part 2------------------------------------------------------------------------<add name="MyConnect"  connectionString="Data Source=CCWWSQLEXPRESS;Initial Catalog=ASPNETDB.MDF;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|ASPNETDB.MDF"     providerName="System.Data.SqlClient" />--------------------------------------Part 2------------------------------------------------------------------------

View 2 Replies View Related

SQL 2012 :: Persist Security Info And Integrated Security In Connection String

Dec 4, 2014

I use from sql server 2008. and c#

what is the best connectionstring?

I don't know if i use Persist Security Info and Integrated Security or not?

And if yes then their value must be true or false?

View 1 Replies View Related

Differance Between Persist Security Info And Integrated Security

Apr 26, 2007

hi i want to know what is the differance between  
Persist Security Info=False;Integrated Security=Yes;

View 1 Replies View Related

ConnectionString

Mar 1, 2008

Just installed Express edition on my laptop and don't know how to set up the connection string in my aspx.vb page.
I've added my connection in the webconfig page and want to set up the vb page.  This is not working please tell me what's missing in the Dim conn section.Protected Sub SubmitInfo_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SubmitInfo.Click
Dim conn As ConnectionStringsSection = "Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|BEEN.mdf;Integrated Security=True;User Instance=True"Dim cmd As New Data.SqlClient.SqlCommandWith cmd
.Connection = conn
.CommandType = "AddUserInfo".Parameters.AddWithValue("@FName", Fname.Text)
.Parameters.AddWithValue("@LName", LName.Text).Parameters.AddWithValue("@Email", Email.Text)
.Parameters.AddWithValue("@Comments", Comments.Text)
End With
conn.Open()
cmd.ExecuteNonQuery()
conn.Dispose()
End Sub

View 2 Replies View Related

ConnectionString

Nov 24, 2005

Hi I'm using Sql Server (SQLOLEDB.1) and I want to connect it by Sqlconnection.those are the details:user Id: saPassword: *****database: ServiceManagementserver name: KLXPE002KULMOSWhat should be the Connection String? Thats what i did:
"Persist Security Info=True;Integrated Security=SSPI;server=SQLOLEDB.1;database=ServiceManagement;Data Source=KLXPE002KULMOS;User ID=sa;password=****"It doesn't work.thnxItai

View 3 Replies View Related

Help With ConnectionString

May 11, 2006

Hello,
I have just tried to deploy my app from my local pc to our server and I have been getting this error.
Server Error in '/' Application.


Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.Source Error:



Line 164: <providers>
Line 165: <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/"
Line 166: type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 167: <add name="AspNetWindowsTokenRoleProvider" applicationName="/"
Line 168: type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />Source File: C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Configmachine.config    Line: 166


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
I am new to SQLExpress 2005 and asp.net 2.0.  I created some database files on my local pc then copied the whole app to the server.  Not sure what to do.
Any help would be greatly appreciated or direction to info.
Thanks Matt

View 13 Replies View Related

ConnectionString

Mar 18, 2008



hey all,

Im a bit lost as what i should have in my connectionString to a sql server


string connectionString = "server=localhost;database=databasename; uid=sa;pw=sa";



The server is on the localhost, the database name is ok, but what do I put in for the username and password?, At the moment because it is hosted locally I am not using any logins.


Thanks

idgeit

View 6 Replies View Related

ConnectionString Property

Jun 28, 2006

I am having trouble initializing my connection. This is the code:


Dim
DBConnPhone As New
SqlConnection(ConfigurationManager.AppSettings("DBConnPhone"))




        Dim DBConnClient As New
SqlConnection(ConfigurationManager.AppSettings("DBConnClient"))       


        Dim Sqlcomm1 As New SqlCommand


        Dim Sqlcomm2 As New SqlCommand


        DBConnPhone.Open()


       
DBConnClient.Open()

Once I start debugging, it stops and give me the error "The ConnectionString Property was not initialized" Any suggestions?

View 4 Replies View Related

ConnectionString Without Password

Nov 23, 2006

Hello! I am working at a ASP.NET Project with has a sign-in area. All users (the aspnet_Membership and so on) are on an external SQL Server stored.The ConnectionString in the web.config looks like this:<add name="hspWerbung" connectionString="Persist Security Info=False;User ID=XXXXX;Password=XXXXX;Initial Catalog=HSPWERBUNG01;Data Source=SERVER_SQL_02STOCKHOLM"   providerName="System.Data.SqlClient" />Is there any way to create a ConnectionString without the User ID and without the password?When i want to reach my site on the web (not with http://localhost/...) , i can't do it with "Integrated Security=True", because there will be no user, or? 

View 1 Replies View Related

Connectionstring Problem

Dec 9, 2006

Hay, I have a problem with this connectionstring.Dim myConnection As New Data.OleDb.OleDbConnection("Provider=SQLNCLI;Data Source=whatever-ja4lbqsqlexpress;Initial Catalog=Account;Integrated Security=SSPI;")I use this code to receive a value on a specific query Public Sub readdata(ByVal myconnectionstring As String)
Dim mySelectQuery As String = "SELECT UserName, Password FROM TAccount WHERE UseName = '" & TextBox1.Text & "'; and Password = '" & TextBox2.Text & "';"

Dim mycommand As New Data.OleDb.OleDbCommand(mySelectQuery, myConnection)
myConnection.Open()
Dim myreader As Data.OleDb.OleDbDataReader
myreader = mycommand.ExecuteReader
While myreader.Read
Label1.Text = myreader.GetString(1)

End While
myreader.Close()
myConnection.Close()

End Sub  But when it execute i receive this exeption Login timeout expiredAn error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.SQL Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. Is this mean that i can not make a connection to my sql server 2005.
 
My sql server 2005 runs on my developer computer 

View 2 Replies View Related

ConnectionString Property Not Set

Feb 14, 2007

 
Hi, After many nights without sleep I'm not seeing this? Can anyone help why I'm getting a ConnectionString Property not set error? thanks!
Dim Sconn As StringDim DBCon As New Data.SqlClient.SqlConnectionSconn = ConfigurationManager.AppSettings("LocalSqlServer")DBCon = New SqlClient.SqlConnection(Sconn)Dim cmdCommand As New Data.SqlClient.SqlCommand
'Dont forget to instantiate a connection object
cmdCommand.Connection = DBConDBCon.Open()

View 18 Replies View Related

ConnectionString Using SQL Server

Feb 15, 2007

Hello all,

View 5 Replies View Related

Stuck With ConnectionString Please ---&>H.E.L.P.&<---

Jun 25, 2007

Hello, Well actually I am beginner to ASP.Net, I am working on Microsoft Virtual PC with VS 2005 and SQL Server 2005 installed. Now when Create web application in Studio  all works fine with databases but when i try to write some code for accessing SQL Databases I keep getting this error PLZ heLP.Following is my code<% @ Import Namespace="System.Data" %><% @ Import Namespace="System.Data.SqlClient" %><html><script language="C#" runat="server" Debug="false" >SqlConnection sqlcon;protected void Page_Load(Object Src, EventArgs e){    sqlcon=new SqlConnection("Data Source=VS02005;Initial Catalog=Gaurav;Integrated Security=True");        SqlDataAdapter sqlcom = new SqlDataAdapter("select * from Employee", sqlcon);     DataSet ds = new DataSet();    sqlcom.Fill(ds,"Employee");    DataGrid1.DataSource = ds.Tables["Employee"].DefaultView;    DataGrid1.DataBind();}</script><form runtat="server">    <asp:datagrid id="DataGrid1" runat="server" /></form></html>This is the error i am gettingServer Error in '/' Application.--------------------------------------------------------------------------------SELECT permission denied on object 'Employee', database 'Gaurav', schema 'dbo'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: SELECT permission denied on object 'Employee', database 'Gaurav', schema 'dbo'. I am stuck dont know what to do, I hve checked all permissions for user gaurav, I also gave administrator rights to gaurav but nothing is working PLEASE help me. 

View 4 Replies View Related

SqlDataSource1.ConnectionString

Jul 4, 2007

This works:
SqlDataSource1.ConnectionString = "Data Source=mydb.myserver.com;Initial Catalog=mydbname;User ID=mydblogin; pwd=mydbpassword";
 This doesn't:
SqlDataSource1.ConnectionString = "<%$ ConnectionStrings:myConnectionString_from_WebConfig %>"
Ok, how do I tell it to use my connection string from my web.config? 

View 5 Replies View Related

How To Get DB UserID From ConnectionString

Mar 5, 2008

HiI've my ConnectionString in web.config... I want to display the DB UserID on my webPage and  UserID is specified in ConnectionString... Can any one help me in this caseThanksNasir Ibrahim 

View 2 Replies View Related

Problem In ConnectionString

Oct 26, 2004

hi,
i have problem in connectionstring in sql server.
my connection string is,
------
conn.ConnectionString = "workstation id=BARODA;packet size=4096;integrated security=SSPI;data source=BARODAMYINSTANCE;user id=sa;password=;persist security info=True;initial catalog=SMS"
it will give error like.....
login fail for user "MERIDIANIUSER_GROUP"

-------
conn.ConnectionString = "workstation id=BARODA;packet size=4096;data source=BARODAMYINSTANCE;user id=sa;password=;persist security info=True;initial catalog=SMS"
it will give error like.....
login fail for user "sa"

-------
conn.ConnectionString = "workstation id=BARODA;packet size=4096;data source=BARODAMYINSTANCE;user id=;password=;persist security info=True;initial catalog=SMS"
it will give error like.....
login fail for user "(null)"

i can do everything, but error occur everytimes.

when i use this, without instance
conn.ConnectionString = "workstation id=BARODA;packet size=4096;data source=BARODA;user id=;password=;persist security info=True;initial catalog=SMS"
it will run successfully,

but i have instance,
and i want to run with it.

plz give any idea.
it's urgent.

thanks in advance.

View 3 Replies View Related

Problem In Connectionstring

Mar 11, 2006

when I write this code in web.config :
  <configuration>
<appsettings>

<addkey="constring" VALUE="WORKSTATION id=I-85096B7FC8F64;packet catalog='test"/' info="True;initial" security="SSPI;data" source="I-85096B7FC8F64;persist" size="4096;integrated">


<system.web>
and write this statements in the code of program :

string Constring = ConfigurationSettings.AppSettings("constring"); SqlConnection conn = new SqlConnection(constring);

this error is displyed:
The name 'constring' does not exist in the class or namespace 'C_sharp1.WebForm1'

View 2 Replies View Related

Get ConnectionString From Web.config

Apr 6, 2006

I've defined my connection string in the web.config file:
<add name="RealtorXConnectionString" connectionString="Data Source=localhostSQLExpress;Initial Catalog=RealtorX;User ID=sa;password=welcome" providerName="System.Data.SqlClient" />
Now I want to get that string and use it in some code where I'm going to run a query against the database.  This query happens in PageLoad, and won't be bound to any UI component.   How can I replace XXXXX below with the value stored in web.config?
Dim strConnection As String = XXXXX
Dim cn As Data.SqlClient.SqlConnection = New Data.SqlClient.SqlConnection(strConnection)
cn.Open()

View 4 Replies View Related

Application Connectionstring

Apr 1, 2008

hi

I have completed a windows db app.
I have saved the db files in the application/bin/ folder.
The connectionstring that i am using is

Code:

sql
Server =(local);Data Source=.SQLEXPRESS;DataBase=;Integrated Security=SSPI



say i wanted to install this app on my home computer, does not have sql express or anything installed.
Now i want to use the application and it must read/write data from the sql db that was saved in the application/bin/ folder.
what is the connectionstring then ?

can anyone please help ?
what im trying to say is that the application must work independent from any SQL manager/express etc.

is that possible ?

View 3 Replies View Related

SQL Connectionstring Parameters

Nov 22, 2006

Hi, does anyone knows where can i find all the values that support the connectionstring??? since the connectionstring uses the "server=local;database=nortwind;UID=me...."

etc. are there more parameteres to specify ?? which one of them is not REALLY important?, where can i find a list or something about it??

Thank you, i hope i made my point clear

View 10 Replies View Related

SQL Everywhere ConnectionString Problems

Jul 26, 2006

<VS2005, SQL Everywhere CTP>

When I create typed datasets (for SQL Everywhere db) using the VS designer, I get a connectionString like Data Source =".App_DataDb1.sdf" added to the settings file by the designer. This works fine in the designer but not at runtime. If I replace the settings value to Data Source ="|DataDirectory|App_DataDb1.sdf" then it works fine at runtime but breaks the designer. I looked at the typed dataset designer generated code & it creates a SqlCeConnection object which supports |DataDirectory| macro. So, how can I get the designer & runtime to agree on a connectionString. I guess I can create a partial class for the table adapters & force a connectionString at runtime via a constructor overload, but, is that my only option?

Btw, the error I get at runtime when using the designer generated connectionString is:
"The path is not valid. Check the directory for the database."

View 3 Replies View Related

Change Connectionstring For Dataset

Jul 25, 2006

hi,
I'm having this application using the express way to create the dategridview by having the query string builder. However, my computer recently crashed and I have no idea to change the connection string. so when I load the whole windows application, I am unable to view the information that are supposed to be in the datagridview. however, it returned an exception.
after finding out the main culprit, I realised that the database is using the old sql server's login. since it is using the old database's login, therefore it is unable to log the information into the datagrid view.
Please help! Thanks.

View 2 Replies View Related

Why ConnectionString Varies On Different Servers.?

Jan 8, 2007

Hi all,
I want to connect to an SqlServer database and I have given the connectionstring on an WinXP computer as Dim ConnectionString As String = "server='localhost'; trusted_connection=true; Database='domains'"
Now, when I copied the files to another computer which is Win 2003 Server, I had to give the connectionstring as
   Dim ConnectionString As String = "workstation id=INFO0;packet size=4096;integrated security=SSPI;data source=INFO0;persist security info=False;initial catalog=domains"
Now, I want to upload the files to a website called "BrowseNow.com".
What should be the connectionstring when the files are being uploaded to the server.
I want the public to read from and write to this database tables.
Is there anything I should do witht the SQL Server Enterprise Manager?
Thanking you in advance,
Tomy
 

View 2 Replies View Related

The ConnectionString Property Has Not Been Initialized

Jul 30, 2007

In short, I have a couple grid views on a page that are used for editing as well as sorting, etc.  The grids are setup to use the SqlDataSources.  I'm trying to deploy this to a server environment for different instances (test,cert,prod) and am trying to set the ConnectionString for the SqlDataSource in the code behind (Page_Load()).  Everything works well, except, I get an error message that says the "ConnectionString Property Has Not Been Initialized."  Its a javascript alert coming up on top of the grid view.
Here is how I'm trying to set the ConnString in the Page_Load():this.EmployeeTimeCardDataSource.ConnectionString = ConfigurationManager.ConnectionStrings[connStr].ConnectionString;
Here is an example of the DataSource.<asp:SqlDataSource ID="EmployeeTimeCardDataSource" runat="server"    SelectCommand="sp_Select_Managers_Employees_List"    SelectCommandType="StoredProcedure">  <SelectParameters>     <asp:SessionParameter Name="CurrentUser" SessionField="User" Type="String" />  </SelectParameters></asp:SqlDataSource>
 

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved