Updates, But Doesnt Insert..

Nov 5, 2007

Hi,
I have a button with code to update a column in a table, and insert other values into another table.
I currently have it working to update the column, but not insert.
It gives an error message, but still updates the column. It doesn't insert, which leads me to believe the error is somewhere in the insert code..
It isn't giving me any red squiggly lines in the code though, and the error doesn't show where its referring to, just giving a stack trace.. 
Error:
Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near ')'.
Incorrect syntax near '@User'.
Stack: 
[SqlException (0x80131904): Incorrect syntax near ')'.
Incorrect syntax near '@User'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +180
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +68
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +199
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2411
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +147
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1089
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +314
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +413
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +115
detailproview.ExecuteInsert(String quantity) +452
detailproview.Button2_Command(Object sender, CommandEventArgs e) +79
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +75
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +155
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4886
 
Code:
private bool ExecuteUpdate(int quantity)
{
  SqlConnection con = new SqlConnection();
  con.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True";


  con.Open();

  SqlCommand command = new SqlCommand();
  command.Connection = con;
  TextBox TextBox1 = (TextBox)FormView1.FindControl("TextBox1");
  Label labname = (Label)FormView1.FindControl("Label3");
  Label labid = (Label)FormView1.FindControl("Label13");

  command.CommandText = "UPDATE Items SET Quantityavailable = Quantityavailable - @qty WHERE productID=@productID";
  command.Parameters.Add("@qty", TextBox1.Text);
  command.Parameters.Add("@productID", labid.Text);
 command.ExecuteNonQuery();

  con.Close();
  return true;
}


    private bool ExecuteInsert(String quantity)
    {
        SqlConnection con = new SqlConnection();
        con.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True";

        con.Open();

        SqlCommand command = new SqlCommand();
        command.Connection = con;
        TextBox TextBox1 = (TextBox)FormView1.FindControl("TextBox1");
        Label labname = (Label)FormView1.FindControl("Label3");
        Label labid = (Label)FormView1.FindControl("Label13");

        command.CommandText = "INSERT INTO Transactions (Usersname)VALUES (@User)"+
          "INSERT INTO Transactions (Itemid)VALUES (@productID)"+
          "INSERT INTO Transactions (itemname)VALUES (@Itemsname)"+
          "INSERT INTO Transactions (Date)VALUES (+DateTime.Now.ToString() +)"+
          "INSERT INTO Transactions (Qty)VALUES (@qty)"+
        command.Parameters.Add("@User", System.Web.HttpContext.Current.User.Identity.Name);
        command.Parameters.Add("@Itemsname", labname.Text);
        command.Parameters.Add("@productID", labid.Text);
        command.Parameters.Add("@qty", TextBox1.Text);
        command.ExecuteNonQuery();

        con.Close();
        return true;
    }


protected void Button2_Click(object sender, EventArgs e)
{
  TextBox TextBox1 = FormView1.FindControl("TextBox1") as TextBox;
  ExecuteUpdate(Int32.Parse(TextBox1.Text) );
}

protected void Button2_Command(object sender, CommandEventArgs e)
    {
        if (e.CommandName == "Update")
        {
            TextBox TextBox1 = FormView1.FindControl("TextBox1") as TextBox;
            ExecuteInsert(TextBox1.Text);
        }
    }
}


 
 If anyone can help, ill be very grateful!!
 
Thanks!
Jon 

View 7 Replies


ADVERTISEMENT

Insert Into Where Data Doesnt Exist

Oct 12, 2007



Hi,

I'm having a few problems. It's probably a simple thing but I can't figure it out.

I need to add data to a table but only if it isn't already in the table.

This is my query so far...


sqlcmd.CommandText = "Insert into caseDetails (c#,fe,cl) Values(@a,@b,@c)"

I assumed that if I added


WHERE not exists (case# = @a)

It would work and insert when the c# doesn't equal @a but all I get are errors.

Can anyone help?

Thanks,

Steve

View 6 Replies View Related

How Can I Do A Multiple Insert Or Multiple Updates Or Inserts And Updates To The Same Table..

Oct 30, 2007

Hi...
 I have data that i am getting through a dbf file. and i am dumping that data to a sql server... and then taking the data from the sql server after scrubing it i put it into the production database.. right my stored procedure handles a single plan only... but now there may be two or more plans together in the same sql server database which i need to scrub and then update that particular plan already exists or inserts if they dont...
 
this is my sproc...
 ALTER PROCEDURE [dbo].[usp_Import_Plan]
@ClientId int,
@UserId int = NULL,
@HistoryId int,
@ShowStatus bit = 0-- Indicates whether status messages should be returned during the import.

AS

SET NOCOUNT ON

DECLARE
@Count int,
@Sproc varchar(50),
@Status varchar(200),
@TotalCount int

SET @Sproc = OBJECT_NAME(@@ProcId)

SET @Status = 'Updating plan information in Plan table.'
UPDATE
Statements..Plan
SET
PlanName = PlanName1,
Description = PlanName2
FROM
Statements..Plan cp
JOIN (
SELECT DISTINCT
PlanId,
PlanName1,
PlanName2
FROM
Census
) c
ON cp.CPlanId = c.PlanId
WHERE
cp.ClientId = @ClientId
AND
(
IsNull(cp.PlanName,'') <> IsNull(c.PlanName1,'')
OR
IsNull(cp.Description,'') <> IsNull(c.PlanName2,'')
)

SET @Count = @@ROWCOUNT
IF @Count > 0
BEGIN
SET @Status = 'Updated ' + Cast(@Count AS varchar(10)) + ' record(s) in ClientPlan.'
END
ELSE
BEGIN
SET @Status = 'No records were updated in Plan.'
END

SET @Status = 'Adding plan information to Plan table.'
INSERT INTO Statements..Plan (
ClientId,
ClientPlanId,
UserId,
PlanName,
Description
)
SELECT DISTINCT
@ClientId,
CPlanId,
@UserId,
PlanName1,
PlanName2
FROM
Census
WHERE
PlanId NOT IN (
SELECT DISTINCT
CPlanId
FROM
Statements..Plan
WHERE
ClientId = @ClientId
AND
ClientPlanId IS NOT NULL
)

SET @Count = @@ROWCOUNT
IF @Count > 0
BEGIN
SET @Status = 'Added ' + Cast(@Count AS varchar(10)) + ' record(s) to Plan.'
END
ELSE
BEGIN
SET @Status = 'No information was added Plan.'
END

SET NOCOUNT OFF
 
So how do i do multiple inserts and updates using this stored procedure...
 
Regards
Karen

View 5 Replies View Related

UPDATE Table From A Remote DB OR INSERT If Doesnt Excists.

Sep 2, 2004

I have been looking for a solution for this for some time and have came up empty handed.

I have 2 servers development box and a live box. Time has passed and my live box has a lot of new data in the database and now I need to update the dev box so I can properly test with real data. Problem here is I want to keep the records that are in the dev box, update them if they exsist on the live box, because live server may or may not contain that record and isert all records that are not on the dev box database.

I hope I am making some sense here, I think I am just making it more difficult then it has to be.

Any suggestions?

Lito

View 1 Replies View Related

Best Way To Insert A DateModified In Updates

Jul 24, 2007

how do i update the date modified Field in my DB. i was thinking of update trigger? i am using ASP 2 with DetailsView for Editing(Updates in SQL term). i can make a Update SP but think that might not be needed  

View 2 Replies View Related

View Tables And Insert Updates

Jun 2, 2006

Hi to all
I have a View of 3 tables I would like to be able to update insert
data into Views table that in return do the same in the original tables is that possible?
Thank you

View 1 Replies View Related

Merge Data From Two Tables Into One Table - No Updates/only Insert

Sep 10, 2007


Hi all,,

I posted the questions in sql forum and got good sql statement to work with it.. However, I want to see if there is a way to do it in SSIS..

May be this is really basic questions but I am having hard time to do it in sql server 2005 SSIS..

I have a flat file that I want to merge with table in SQL server 2005.

1> I have successfully created a data flow task to import data from flat file to Table X (new table I created for this package).

Now here is my question.
I have a Table A already in the database with the same column structure as of TableX (Both the tables have 20 columns/same Name/Same design).

I want to merge Table A and Table X and stored the data in TableA. However, I just don't want to merge blindly, I need to insert a new row in Table A only if the same row does not exist in Table A (there is no primary key, i am looking certain fields to see if the rows are same)..

Here is an example:
Table A
--------------
1 test test1 test2 test3 test4 test5
2 test test6 test7 test8 test9 test10

Table X
------------
1 test test1 test2 test99 test4 test5
2 test test98 test97 test 96 test95 test94
--------------------------------------------------------
Now, I want to only insert row 2 of Table X since there is match on 4 of the fields in row1..
The new Table A should look like

NEW Table A'
-----------------

test test1 test2 test3 test4 test5
test test6 test7 test8 test9 test10
test test98 test97 test 96 test95 test94


------------------------------------
I think, I could do this using Execute SQL task and write all the code in sql, but that will be cumbersome and time consuming.. Is there a simpler way to achieve this?

Thanks in advance.

View 6 Replies View Related

Insert Data Into A Destination Column Which Doesnt Have An Input Column

Feb 27, 2008

Hi, I was wondering how I can complete a column (which doesnt have an input one) with data.
For example:


I have a sql query which bring data of 3 columns

ID | FISRT NAME | LAST NAME
1 MIKE MORGAN
2 SARA JOHANES


So, I will insert that data in a FLAT FILE CONNECTION MANAGER, which I configured with 3 columns and I did the corresponding mapping in the FLAT FILE DESTINTATION.


Now, If I add one more column in the FLAT FILE CONNECTION MANAGER, I will not have it mapped to a input one, obviously. So, what I need is to add one more column to the flat file destination and complete it with zeros values in it.


Probably I can solve this part by introducing a DERIVED COLUMN and there I can configure the zeros that I want to add to the column. But I'm not sure if I can do that without having a input column.
So, the question will be, how can I add one column to a flat file which doesnt have a input and introduce any value that I want to it?
Hope I was clear
Thanks for your help.

Beli

View 4 Replies View Related

Firing A Trigger When A User Updates Data But Not When A Stored Procedure Updates Data

Dec 19, 2007

I have a project that consists of a SQL db with an Access front end as the user interface. Here is the structure of the table on which this question is based:




Code Block

create table #IncomeAndExpenseData (
recordID nvarchar(5)NOT NULL,
itemID int NOT NULL,
itemvalue decimal(18, 2) NULL,
monthitemvalue decimal(18, 2) NULL
)
The itemvalue field is where the user enters his/her numbers via Access. There is an IncomeAndExpenseCodes table as well which holds item information, including the itemID and entry unit of measure. Some itemIDs have an entry unit of measure of $/mo, while others are entered in terms of $/yr, others in %/yr.

For itemvalues of itemIDs with entry units of measure that are not $/mo a stored procedure performs calculations which converts them into numbers that has a unit of measure of $/mo and updates IncomeAndExpenseData putting these numbers in the monthitemvalue field. This stored procedure is written to only calculate values for monthitemvalue fields which are null in order to avoid recalculating every single row in the table.

If the user edits the itemvalue field there is a trigger on IncomeAndExpenseData which sets the monthitemvalue to null so the stored procedure recalculates the monthitemvalue for the changed rows. However, it appears this trigger is also setting monthitemvalue to null after the stored procedure updates the IncomeAndExpenseData table with the recalculated monthitemvalues, thus wiping out the answers.

How do I write a trigger that sets the monthitemvalue to null only when the user edits the itemvalue field, not when the stored procedure puts the recalculated monthitemvalue into the IncomeAndExpenseData table?

View 4 Replies View Related

Why Doesnt This Work?

Feb 22, 2006

i am new at T-SQL and am trying to delete entries in a column that are not integers. i have the following code. why does it not work.

T-SQL

select invoicenumber from [control register] where convert(int, invoicenumber) like '%'
if @@error > 0
begin
delete from [control register] where invoicenumber = invoicenumber
end
go

gives me the error in Query analyser:

Server: Msg 245, Level 16, State 1, Line 1
Syntax error converting the nvarchar value '10-3-05' to a column of data type int.

@@error is supposed to pick up the error. why is it not.

please could you reply urgently at chris@captivedesign.co.za

thanks in advance



Chris Morton



View 8 Replies View Related

Can Someone Tell Me Why This Sql Statement Doesnt Work?

Jan 26, 2004

can someone tell me why this sql statement doesnt work?

SQL = "SELECT (Count(department_id) as 'totals' FROM nonconformance WHERE department_id = '7'),(Count(department_id) as 'totals2' FROM nonconformance WHERE department_id = '1') FROM nonconformance"


How do I fix it?

Thanks

View 2 Replies View Related

MS SQL Database Doesnt Get Updated

May 25, 2007

Till yesterday every thing was fine....after i installed visual studio...god knws wat happnd dat it was not working, i did everything again but noe using my asp.net forms i am unable to write/edit/update the database, though i can view the same.....can any one suggest was might b d problem.

(i have set permissions for IUSER bot Read and Write)

View 2 Replies View Related

How To Restore A Backup That Doesnt Have .bak Ext?

Apr 9, 2008

Hi All,
This is reletaed to SQL Server 2005.
I have a backup file that does not have any .bak extension and I am trying to restore it against a already existing DB. Thats the first time I am dealing with a backup that does not have a .bak extension and I dont know how to restore it.

The .bak backups are easy to restore and I restore it in SQL 2005 managment studio with the following steps;
a) I right clicking on the existing database (where I want it to be restored) and b) then click Tasks , c) click Restore, and d) click Database, and e) then in the restore database window click 'From device', f) then click '...' to browse and g) click add to browse and add the backup file to be restored.

I am doing the above steps for the non .bak extension backup file but I am unable tio add the file?

In SQL 2005 managment studio how can I restore a backup (that doesn't have .bak extension) against a exsisting database?

Please help.

Thanks a million.

Zee

View 6 Replies View Related

Case When Doesnt Work (for Me)

May 21, 2008

Can someone tell me why this thing in the end return Null?

declare @uz_id uniqueidentifier
set @uz_id=null
set @uz_id=
case @Uz_ID
when null then '00000000-0000-0000-0000-000000000000'
else @Uz_ID
end
select @uz_id

...it should return '00000000-0000-0000-0000-000000000000' in my opintion

P.S. When I say return i mean the value that is shown after 'select @uz_id' is executed:)

View 5 Replies View Related

Why Doesnt This Work............confused!?!?!

Mar 21, 2007

This is an insert statement i'm trying to run. I want it to only insert this recird if the corresponding EMPLOY_REF exists in the EMPLOYEE table. Heres my statement:


INSERT INTO SALHISTY(EMPLOY_REF, SALARY, SAL_REASON, SAL_DATE)
VALUES ('8971','175000.0000','ANNRV','2007-04-01 00:00:00.000')
WHERE '8971' IN (SELECT EMPLOY_REF FROM EMPLOYEE)


This is the error message i'm getting.

Server: Msg 156, Level 15, State 1, Line 3
Incorrect syntax near the keyword 'WHERE'.

Any help would be greatly appreciated. Thanks

View 14 Replies View Related

Why Doesnt My Query Work

Dec 6, 2007

select distinct
a.Patients,
b.Patients,
a.pct,
b.pct

from
(
select count(*) as Patients, [pct of res] as pct
from testing
where [18 week wait] <= 18
group by [pct of res]
) as a right outer join
(select distinct[pct of res] from testing) as c on a.pct=c.[pct of res]and a.pct <> 'null' --is not null

(select count(*) as Patients, [pct of res] as pct
from testing
where [18 week wait] >18
group by [pct of res]
) as a left outer join as b on c.[pct of res]=b.pct

View 6 Replies View Related

Document Map Doesnt Display In IE7

Apr 5, 2007

Can anyone help,



I have created a report which works great when the users run from IE6, but when anyone runs report from IE7, the report displays ok, but the document appears to build but displays absolutely nothing.



Has anyone seen this problem with IE7 using Reporting Services 2000?



Thanks people

View 1 Replies View Related

Replace Parameter Doesnt Work

Sep 15, 2006

I have the following in my commandtext but it doesnt seem to replace the LanguageColumnName variable:       Dim cmd As New SqlCommand("SELECT '+@LanguageColumnName+' FROM tblSports a INNER JOIN tblUsersAndSports b ON a.SportID=b.SportID " & _        "WHERE b.UserCode=@UserCode", MyConnection)        cmd.Parameters.Add(New SqlParameter("@UserCode", UserCode))        cmd.Parameters.Add(New SqlParameter("@LanguageColumnName", LanguageColumnName))I have tried '+@LanguageColumnName+' and also just @LanguageColumnName but this variable isnt replaced for some reason.The value of LanguageColumnName is "de"...the funny thing is that when I just type my command like the following it DOES work..:SELECT de FROM tblSports a INNER JOIN tblUsersAndSports b ON a.SportID=b.SportID " & _        "WHERE b.UserCode=@UserCodeWhat am I doing wrong?

View 1 Replies View Related

SQL Server Doesnt Allow Remote Access??

Jan 7, 2008

What does this mean and how do I change it and what problems could this cause?

View 3 Replies View Related

Query Doesnt Count Correctly

Jun 17, 2008

Hello,
Im having a problem with this query....SELECT a.ref, COUNT(b.entrypage) AS counter
FROM SiteCore.dbo.Campaigns AS a LEFT OUTER JOIN
webStats AS b ON b.entrypage LIKE '%?ref=partners%'
GROUP BY a.ref
 But i want it to look more like this, so it pulls the approprite rows its selfSELECT a.ref, COUNT(b.entrypage) AS counter
FROM SiteCore.dbo.Campaigns AS a LEFT OUTER JOIN
webStats AS b ON b.entrypage LIKE '%?ref=' + a.ref + '%'
GROUP BY a.ref
 The first one return the correct count where as the latter doesnt retuen anything, could any one shed any light as to what the problem could be?
 Thanks
Bart

View 10 Replies View Related

Why Doesnt BETWEEN Give Me My Desired Result?

Dec 9, 2005

I am trying to select records based upon last name
WHERE     (Last_Name BETWEEN 'A%' AND 'C%')
When I run this I get only last names starting with A and B--no C. ?!?
This is confusing to me....I ran it with lastname >= 'A%' and lastname <='C%'and it returned only names starting with B. Why does SQL ignore the "="
I hope this isnt obvious :/
 
 

View 6 Replies View Related

Server Agent Doesnt Start.

Apr 7, 2005

hi guys i keep getting this error when trying to start the sql server agent service.

"The SQLSERVERAGENT service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service".

the SQL server service starts fine and i tryied starting the agent with the same user but it fails still.

Any ideas?

Thanks.

View 2 Replies View Related

Command Doesnt Support Executereader

Nov 26, 2006

Code:

connstr = "my connction info"
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open connstr

Set objCmd=Server.CreateObject("ADODB.Command")
set objCmd.ActiveConnection = objconn

objCmd.CommandText = "my stored procedure"
objCmd.CommandType = 4

objcmd.parameters.append objcmd.createparameter("@itemcheckduplicate", 200, 1, 30, itemadd)
SqlDataReader forduplicate = objcmd.ExecuteReader()

my procedure :

@itemcheckduplicate varchar(30)

as
select sw_item_itemid
from sw_item
where sw_item_item like @itemcheckduplicate



why my command doesnt support ExecuteReader ?

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'ExecuteReader'

View 2 Replies View Related

Grabbing Accounts That Doesnt Have All Possible Values

Feb 9, 2007

I have a table:


Code:


serverid | value
12 | languages
12 | php
12 | coldfusion
12 | mysql
12 | mssql
12 | asp
14 | languages
14 | php
14 | asp
16 | languages
16 | php
16 | coldfusion
16 | mysql
16 | mssql
15 | languages
15 | coldfusion
15 | mssql



i need to get all serverid of those that have entries for "languages", but dont have rows for php, asp, and coldfusion.

so in the above example, i would get 15 and 16.

i dont think i can do in one statement?


sql Code:






Original
- sql Code




SELECT t.serverid FROM table t WHERE t.value = 'languages' AND (t.value != 'php' AND t.value != 'asp' AND t.value !='coldfusion')






SELECT t.serverid FROM TABLE t WHERE t.value = 'languages' AND (t.value != 'php' AND t.value != 'asp' AND t.value !='coldfusion')



i think that above statement is completely wrong already ( I think it would need to do a select statement inside the WHERE clause)

i think i would need to maybe create a temp table and use a cursor?

any ideas or help ?

View 6 Replies View Related

Job Doesnt Stop After Finish Successfully

Jun 18, 2008

I have a scheduled job to run daily at 4 am. the job imports data from client side from text
files and puts data in our sql table.It takes around 1 hour.
the problem is it doesnt stops after the import process completes.so after one hour
i can see the data is imported into my sql table so thats fine but the job keeps running.
I tried observing that job's spid in activity monitor in sql 2005 but after one hour i cant even see
that spid but still job runs. its weird.and after that when i stop the job manually then it stops
saying job completed succcessfully.
that step is a last step and it uses windows cmd.my understanding is the job step doesnt
understands that it got finished. what should i do in here?? any ideas r appreciated
we are running the same job for another servers and its fine.

View 5 Replies View Related

Simple Query Doesnt Work

Apr 23, 2008

I have my db in a pocket pc wm5.0, I just want to make a simple query
select * from table
where pk = '1'
but this doesnt work, if you tried any other field else than the primary key
it works... WHY???

would it be a problem with the sdf file? help please!!!

View 3 Replies View Related

A MergeJoin Using Two Fields Doesnt Work !

Jul 5, 2007

Hi,

I have an issue. When I am performing a Merge Join using two fields of type
DT_WSTR on both sides of the Join, the Dataviewer after the Join only shows the left side 2 key
fields having values populated but both fields from the right hand side as being NULL. The Dataviewers I put in before the join show both sides of the join fields being populated ( 2 sides x 2 fields ). If I remove one of the fields from the join it shows both fields from the left side and the right side of the join being populated . I am trying to knock out duplicate values from the insert using 'genuine' Nulls from the right hand side so I need both parts of the 'Key'. I have checked the adnvanced tab that ignores Case etc but has had no effect.

I am using the technique from here : http://www.sqlis.com/311.aspx

Is this an SSIS bug ??? It is driving me up the wall.

Help would be much appreciated please.

Thanks
Jon

View 1 Replies View Related

IS Package Doesnt Ship With Password

Feb 22, 2007

Hi,
I tried many times checking "Save password" in connection manager editor. But everytime I open the editor again and I see the password field blank.
I took it as normal, and deployed my IS Package, It couldnt run because of login failed for user 'sa'.


How do I force IS to save password  on any ProtectionLevel ?



Thanks,
Fahad

View 11 Replies View Related

Error. Doesnt Make Sense. HELP!

Jun 8, 2007

I am new to SSIS. i am trying to port database from SQL SERVER 2000 to 2005. i am using "Transfer SQL Server Objects" for this. i am just trying to move one object for testing wether it works or not. and it is not working. i am getting this error.



[Transfer SQL Server Objects Task] Error: Execution failed with the following error: "ERROR : errorCode=-1071636471 description=An OLE DB error has occurred. Error code: 0x80040E37. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E37 Description: "Invalid object name 'dbo.consta_AE'.". helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}".







Both DBs are on seprate machines. of you need any more info please let me know. that would be great help.



Thanks

View 8 Replies View Related

Changing In Sysaltfiles Doesnt Work

Jun 29, 2007

HI All,I have started sqlserver in single user mode and changed filename in sysaltfiles for tempdb too point to new location. While starting sqlserver in normal it points to the old path and doesnt get updated with the new path.1.)is there any systable still to be altered???2.) i have even tried alter database, doesnt work.3.)The master files have been taken from server1 (where tempdb points to d:data) to server2 ( where i need to point tempdb to point E:mssqldata). i can detach and attach msdb and model successfully, but in the case of tempdb, i cant either alter sysaltfiles or detach and attach tempdb to new path., too tired in trying all the possiblities... Is there any possibility to update tempdb to point to new path???

View 5 Replies View Related

Getting The Database Collection Doesnt Always Wrok

Sep 24, 2006

why doesn't this code always work?

<code>

Dim conn as serverconnection=New serverconnection(".SQLEXPRESS")

Dim srv as new server(conn)

Dim db as database

for each db in srv.databases

cmbDBfilenames.items.add(db.Name.tostring)

Next

</code)

If the databases are located in the applicatio path , it doesn't pick them up



View 1 Replies View Related

Repeat Header Doesnt Work

Jun 18, 2007

hi there,

i've made a report containing a subreport. the subreport is in a table. the table headers should repeat. but if the subreport expands more than one site, the table header doesnt repeat.

okay. i could place the table header in report header, but in report header i cant use fields from a dateset.

thanks for any idea, tobi

View 1 Replies View Related

SQLData Source Doesnt Appear When You Drag And Drop

Feb 23, 2007

Really not sure what is going on. I drag and drop the SQLDataSource to my website. At that point I can see the properties of it, but there is no graphical box on my website. Therefore I can no longer make any changes to the controller once I drag it on the website. I did create a brand new website with nothing on it, drag and dropped and still nothing appears. Any assistance would be great.

View 6 Replies View Related







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