Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Table Is Not Getting Updated Fully


Hi all,

i have a table1 with 3,25,000 records in US database.i want to upadate this table information in to table2 in SG database based on some condition (if prodid and skuno match in both tables, then update ordertransferind column in table2 from table1) what is happening is after 10,000 records query is not executing. in status bar it is displaying 'done'. but only 10,000 records are updating not the remaining ones. for this 10,000 records also it is taking more than 1 hour time. i tried by incresing the commandTimeout to max value(99999)...but still it is same...any advise...please suggest...

 i am using sql2005,visualstudio 2005....

 thanks for the help..

 

Anne




View Complete Forum Thread with Replies

Related Forum Messages:
SQL ERROR Not Recognizing The Fully Qualified Table Name
 Why am im i getting this error I am trying to join four table from different databases.select INBTable.InBound_Calls, OUTTable.OutBound_Calls, INBTable.Line_Number as INLine_Number,
OUTTable.Line_Number as OUTLine_Number, INBTable.Hold_Time as INHold_Time,OUTTable.Hold_Time as OUTHold_Time, INBAbandonInfo.INAbandon_Calls as INBAbandon_Calls,
OUTAbandonInfo.OutAbandon_Calls as OUTAbandon_Callsfrom sql2.XMWin_Test.dbo.temp_Report20070807IN as INBTable
JOIN sql2.Juniper_I.dbo.temp_Report20070807OUT as OUTTableon INBTable.Line_Number = OUTTable.Line_Number
sql2.XMWin_Test.dbo.temp_GraphIN_INAbandon as INBAbandonInfoJOIN sql2.Juniper_I.dbo.temp_GraphIN_OutAbandon.Line_Number as OUTAbandonInfo
on INBAbandonInfo.Line_Number = OUTAbandonInfo.Line_Number
 My Error Message:
Msg 170, Level 15, State 1, Line 8
Line 8: Incorrect syntax near 'sql2'.
 

View Replies !
Fully Qualified Table Name Error In A Transaction Staement
Hi,
I am getting the following error if I execute the below SQL in Query Analyzer or Stored Procedure

begin TRAN
select * from <ServerName>.<database name>.<user name>.<table name>
COMMIT TRAN

I am not able to use the fully qualified name local table name in a Transaction statement.

Error is:
The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.
OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].

If I acess a remote server table name(liked server) it is working fine but for local table it is giving an error.

If I remove the fully quanlified name and include only table name it is working fine.

Can any one hlep me in resolving this issue?
Thanks in advance.

Regards
Vijay

View Replies !
Do I Need To Fully Process The CUBE, If Structural Change To Fact Table Happens
I have a requirement.

I have a CUBE in SQL 2000. I need to change the structure of Fact Table and i need to add one more dimension to my CUBE.

What are the problems will arise if i do this. i need to Fully process the CUBE?


PLS help me

View Replies !
SQL Server 2000 - What Is Fully Patched And How Do You Get It Fully Patched Sp4+
Having read the following :

How to identify your SQL Server version and edition 
http://support.microsoft.com/kb/321185/
 

How to obtain the latest SQL Server 2000 service pack 
http://support.microsoft.com/?kbid=290211

 
Service Pack 4 for Microsoft SQL Server 2000 
http://download.microsoft.com/download/1/B/D/1BDF5B78-584E-4DE0-B36F-C44E06B0D2A3/ReadmeSql2k32desksp4.htm#_1461463_hardware_and_software_requiremen_fzpy

 
Cumulative list of the hotfixes that are available for SQL Server 2000 SP4 
http://support.microsoft.com/?kbid=894905

 
A cumulative hotfix package is available for SQL Server 2000 Service Pack 4 build 2187 
http://support.microsoft.com/?kbid=916287

 
Which appears to indicate
8.00.760 = sp3/sp3a
8.00.2039  = sp4
8.00.2187 = Cumulative rollup
8.00.2249 Final patch build number
 
I still have the following question which i would very much appreciate help in answering:
If support is required from Microsft what is the acceptable level of SQL Server patching before Microsoft will agree to look at a SQL Server problem. ?
 SP4 Build 2039 + Build 2040 (awe fix)
 SP4 Build 2187 cumulative rollup
 SP4 Build 2249 fully patched as per KB894905
Do I need to apply builds 2187 to 2249 ?
If so where/how can I obtain the down loads from ( 8.00.2187 - 8.00.2249) ?
 
Have logged a call with microsoft support but as yet no responce.

View Replies !
Who/When Was A Table Updated?
How can I determine who and when a table in a db was updated, I dont need this per record, I only need to know the last time an update was made to a table. Thanks.

View Replies !
UPDATED Table
is there a such thing as a "UPDATED table".. as in a trigger's INSERTED table or DELETED table ....

View Replies !
Getting The Name Of The Updated Table
I am writing a generic trigger in VS 2005 that selects records from the inserted table, and updates an audit table. I am, however, unable to retrieve the name of the table that the insert occurred on. I am using the following code to select the records, and obtain the name.. Can anyone offer any alternatives to accomplishing this task? Thanks in advnace for any help you can provide.

Craig

SqlDataAdapter tableLoader = new SqlDataAdapter("SELECT * FROM inserted", connection);

DataTable insertedTable = new DataTable();

tableLoader.Fill(insertedTable);

string insertedTableName = insertedTable.TableName;

 

View Replies !
When Was A Table Updated?
is there any way to know when was the table last touch (updated) in all scenarios (insert, delete, update, etc..)?

View Replies !
Linked Reports Not Being Updated When Master Report Is Updated
Since updating to SQL Server 2005 SP2 I've noticed two things about Linked Reports.
 
1.  I do a lot of 'Snapshot' reports.  With SP-1 if I updated a master report and made any changes to the Parameter List - it undid all my custom parameter changes on linked versions (restored to the Master Reports Defaults).  While this is no longer happening with SP2 - it is still 'unhiding' the parameters.
 
2.  With SP-1 if I added/deleted columns or made other changes to the report structure - the linked reports would pick up on the changes with their next refresh.  With SP-2 I'm finding that I have to 'Re-link' the linked report back to the master report before the changes are refreshed.  This is very time consuming especially with each report having 8 or more Snapshot reports pre-set up.
 
Am I missing something - or is this a 'bug'...
 
Any help would be appreciated...

View Replies !
Current Updated Value In Table
hello all..
i  want to update my table information with the value which is currently inserted/updated in another table dynamically..how to get the value of a currently inserted single cell in that table..?
table1 contains Refno,.....Refno is primarykey,identity
table 2 contains uploadID,....uploadID is primary key,identity
table3 contains RefNo,UploadID(both r foriegn keys corresponding to table1 & table2)
how to fill table3 with values(not manually) when i am inserting records into table1 n table2 ..( refno and uploadId are identity columns )..Any Idea..?
 
thanks in Advance
Anne

View Replies !
Log_shipping_secondaries Table Not Updated
Hi,

I have configured the logshipping like this...

1. Primary server and monitoring server are same..
2. Service (SQL & Agent) startup account (Domainuser) on primary and secondary server are same and added to local Administrator group and builtinadministrators group in SQLServer.These accounts have access to msdb database..
3.Primary Server is is in a different timezone and 8 hours ahead of secondary.
4.Synchronisation is perfect on secondary server with primary server...

But the log_shipping_secondaries table in the monitoring/primary server was not being updated by the secondary server..And as a result log_shipping restore alert job is failing with a message that secondary server is outof sync by 2111 minutes...

Can anybody tell me the cause...

Regards,
NSR

View Replies !
SQL To Email When Table Is Updated?
I want to setup a method to get emailed whenever someone adds an item to a particular table.

I'm looking at SP's, and DTS's.. but i'm just not sure what the best path is.

http://www.sqldev.net/dts/SMTPTask.htm will create a great Custom DTS Email Task.. but then i don't know what to do next... I don't know how to say.. "If a new row is added, then run this DTS"... or if i should schedule the DTS to run every 30 minutes and then somehow query for new "Created" dates.

Please Help!

View Replies !
Table Identity After Updated
 

Hello all,
 
   I fixed a after update trigger with sql server 2005 and I need to return the last identity updated in the table to insert it into another table. How can i get the last Identity updated in a table?
 
Please help ..
Sms

View Replies !
Replicated Table Is Not Updated
Dear All,
i've made repliaction stup using the information guide below. all the things are done axactly. now i've inserted a row in the publisher. but i'm not getting the record at the subscriber database. please let me know where i'm missing

http://blog.csdn.net/longrujun/archive/2006/06/09/783357.aspx

Arnav
Even you learn 1%, Learn it with 100% confidence.

View Replies !
Last Updated Datetime In Table
How do I find who and when a particular table in SQL database 2005 was last updated.
Note that the table does not have a column which stores the last updated datetime.

TIA,
Andy

View Replies !
How To Find Out Which Field In A Table Is Updated
When someone modifies a field in a table, I like to find out whichfield he/she changed.Currently, only the LAST person to modify an object is saved. Forexample, if I modify an Application record, I will see "MyName" in the"tblApplications.UpdatedBy" field and the date and time I updated it.But it doesn't keep an historical record. We would like these changesto be stored in a file or a table or something.Please help

View Replies !
How Is Represented The Updated Table In A Trigger?
Hello

I am a newbie creating triggers and I would like to know what is the name of the updated logical table. That is, since the are identifiers like "inserted" and "deleted" that represent the inserted and deleted rows, respectivaly, I presumed that "updated" existed - but it does not.

I have a table with a column named "UpdatedTimeStamp" which I would like to update anytime the other columns are modified. I intended to create the following trigger:

create trigger myTrigger
on myTable
after update
as

update updated set UpdateTimeStamp=GetDate()

Of course, "updated" is not a valid identifier that represents the updated row.

Please, help me in creating this trigger. What is the correct way of doing a trigger like this?

Thanks a lot in advanced.

View Replies !
Determining Last Time A Table Was Updated (6.5, 7.0, 2k)
I am trying to find a global way of when the last time a row in one of my tables was updated or data inserted. I say global because I don't want to drill down through each table looking for modified rows.

I am a DBA of several hundred databases and want to retire those no longer being used.

Is there a column of a system table that has this info.

View Replies !
Finding Out Which Rows Have Been Updated In A Table
Can this be done easilly through a stored proc?

View Replies !
Updated Records From A Table Insert Into Another
Hi:

I need to create a trigger to save every record which has been updated in a table (e.g. "Contacts") into another (e.g. "Shadow_contacts). So basically something like a versioning on database level.
I have no experience with it and any precise hints/solutions would be very appreciated

selmahan

View Replies !
Needs To Move One Task To Another Once My ETL Table Gets Updated
 

Hi All,
 
I have SSIS package where i will be refreshing 5 cubes.  Here i am running my package every 15 minutes because i dont know when my ETL tables inserted once my ETL job is done.  My question is that i need to move to another task once my first cube get refreshed.  i.e when my first cube gets processed for first 15 minutes i will be updating some column as timestamp in ETL table.  And then i will be processing remaining four cubes.  For the second 15 minutes i should not process the same first cube rather i should process only the four cubes.  Because these four cubes data i am getting from different region. 
 
It can be done in SS 2000 under active x script task.  But i need to do it in SSIS under Script Task where i will be checking in ETL table whether my TimeStamp column has value or not.  Is it possible to do it?  Moreover we have option like disconnected edit in DTS 2000.  Is there any similar way to acheive?
 
Thanks in advance,
Anand Rajagopal
 

View Replies !
Send Email When DB Table Is Updated
Hi guys,
 
I am new to reporting services. I want to know how to send email whenever there is an update on TABLE_Customer. I have looked through data-driven subscription, but that is just normal schedulling. When i surf the net, i also found UpdateReportExecutionSnapshot. can i just put UpdateReportExecutionSnapshot inside my application so that when on UPDATE function, i will call UpdateReportExecutionSnapshot to trigger the snapshot to be updated?
 
Help... Thank you very much

View Replies !
Getting Primary Key Of The Updated Row In A Table Inside Trigger
Hi All,
I am using a trigger. I want to get the data of a row before updating inside this trigger and insert it into a backup table. Please anybody help me. Example with code is highly appreciated.

Thanks in advance.

View Replies !
Trigger (Instead Of Update) Doesn't Allow My Table Been Updated.
I have a Trigger Instead of Update.
When I Update my table, the trigger runs correctly but my table never is updated.
 
 
 

View Replies !
How To: Create A Table That Only Allows NULL Fields To Be Updated.
I need to create a table that only allows fields to be updated if the field value is NULL.  Is there anyway to configure a table in this manner? 
 
In the example below the record will be created with a serial number and verification ready flag set to true.  Other processes down stream will update the remaining fields as needed but should not update fields that have already been initialized.
 
Table Definition
 
USE [DB_AUTOMATED_PACKAGING_SYSTEM]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[TBL_LABEL_VERIFICATION](
      [SerialNumber] [varchar](50) NOT NULL,
      [VerificationReady] [int] NOT NULL,
      [VoidLabelImage] [image] NULL,
      [VerifiedBy] [varchar](50) NULL,
      [VerifiedDate] [datetime] NULL,
      [Verified] [int] NULL,
 CONSTRAINT [PK_TBL_LABEL_VERIFICATION] PRIMARY KEY CLUSTERED
(
      [SerialNumber] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
 
GO
SET ANSI_PADDING OFF

View Replies !
Query To Find Table Updated In Last One Hour
Hi,
 

Does anyone know how to find out how many rows have been updated or deleted in a particular table for the last 1 hour?
 
Please reply.
 
Best Regards,
Ansaar
 


 

View Replies !
Java Alert When Database Table Updated
Hello Everyone,

I am new to connecting to databases through java and in fact have not done much database programming although I am fairly good at SQL.
I have used the MS JDBC driver to connect to a MS SQL server database but I want to update my application every time a record is added to the database and or alert the user.
From what I have read, i assume that I can create a Trigger in java but how do I get my trigger to call a method / run java code?
 
Thanks for your time and Help
 
Martin.

View Replies !
Update A Dataset From An Updated MSSQL Table
Here is my problem: I've created a table in MSSQL named MyReferences and then a typed dataset to connect to it.

 

Then I realized that I needed to add a column to MyReferences table and then I did it.

 

The problem is that I cannot find a way to add the new column to the typed dataset. I am unable to view it in the available columns.

 

Can anyone help me?

 

I'm using Visual Studio 2005 sp1 and C#.

 

Best regards

 

Alessandro

View Replies !
Replacing Tables In SQL Express By An Updated Table Of The Same Name Through VB2008 Code
Hello,
 
I have an application written in Visual Basic 2008, using a SQL Express 2008 database.  This application runs in several locations on stand-alone PC's and there is no network connecting them.
I have to maintain a SQL database in a central location an would like to be able to distribute updated tables from that central location by using an USB stick and replace the tables of the same name in the different locations with the updated ones on my USB stick.
This I would like to do using code within my VB2008 application.
 
Can someone please help me on the way to achieve this.  Is it possible to give some concrete code examples, as I am a newbie as a SQL Server user.
 
Many thanks and greetings,
 
Michel
 
 
 

View Replies !
SQLSERVER 2000,How Can I Detect The Last Time Where The Table Has Changed (updated)?
Hi, I wonder where I can see last update over a table. Maybe sqlserver write some information about every table.
 
For example there are 300 tables in a database an I want to execute some query to see the last tables updated (list of tables updated > 2008-01-02 )
 
Hope to be clear,
Best regards
Ariel
 
 

View Replies !
Save Updated Date When Row Is Updated
Hi,I want to save the last modification date when the row is updated. I have a column called "LastModification" in the table, every time the row is update I want to set the value of this column to the current date. So far all I know is that I need to use a trigger and the GetDate() function, but could any body help me with how to set the value of the column to getdate()? thanks for your help. 

View Replies !
Trying To Run A Schedule Dts Package Every 20 Minutes To Recreate A Table With Updated Data Into A Excell File
The only way the job success is if I select the option add rows wich is copying all rows even the ones that are already there, I tried to drop amd recreate the table option but i just dosn't run that way, help please..

View Replies !
RAM Not Being Fully Used?
Hello All,

We have a server running Windows Server 2003 with SQL Server 2005, it also does some minor file-sharing usage. 
I noticed that the over 3/4 of our 2GB of RAM was being used by SQL and the pagefile was over 1.5GB constantly. 
Needless to say this caused performance issues, so I upgraded to 4 GB of RAM.
However it would seem that nothing has changed.
The same amount of RAM is being committed to SQL resulting in the same size pagefile and 2GB of unused memory.
Should my Windows Processor Scheduling and Memory Usage be set to Programs or Background Services/System Cache for best performance and best usage of memory with SQL server?
Also when I look at the MS SQL server properties, what should these settings be for best performance and memory usage as they are currently set to:
NOT use AWE to allocate memory
0MB - minimum server memory
2147483647MB - maximum server memory
0KB - Index creation memory
1024KB - minimum memory per query

Any help with this problem would be greatly appreciated.

View Replies !
When Will It Be Fully Supported?
Having sucessfully tested mirroring, I've suggested we should implement it at my place of work.

However, they are non too pleased that it is not yet officialy part of SQL Server 2005 and therefore not supported, does anyone know when it will be in standard edition? because I really really need to know...

Thanks

 

  

 

 

View Replies !
Fully Editable Datagrid
I have been trying to formulate a fully editabe datagrid for a couple of days with no luck.  I have used code from 4guys and some other sites and am at the point where I can render the datagrid correctly (as a bouncolumn and template column-textbox) but when I try to update the database it all falls apart.  I am getting "input string was not in a correct format" and the error references ...Dim id as Integer = Convert.ToInt32(sls.DataKeys(dgi.ItemIndex))I suspect the problem lies in the area of primary indexes and such.  The table I am using is a simple two-column table with usernames, passwords.  Username is the primary field. Here is the actual code I am using...<code><%@ Page Explicit="True" Language="VB" Debug="True" %><%@ Import Namespace="System.Data" %><%@ Import Namespace="System.Data.OleDb" %><html>
<script runat="server">Dim Connect As OleDbConnection = New OleDbConnectionDim Adapter As OleDbDataAdapter = New OleDbDataAdapterDim DS As DataSet = New DataSetDim ConnectString, SelectStatement As String
Sub Page_Load(Sender As Object, E As EventArgs)
If Not IsPostBack Then SelectStatement = "Select * From Table"ConnectString = "Provider=SQLOLEDB;UID=;PWD=;" & "Data Source=;Initial Catalog=;"
Connect.ConnectionString = ConnectStringAdapter.SelectCommand = New oleDbCommand(SelectStatement, Connect)Adapter.SelectCommand.Connection.OpenAdapter.Fill(DS, "Items")sls.Datasource = DS.Tables("Items")Page.DatabindConnect.Close()End IfEnd Sub
Sub Click(sender As Object, e As EventArgs)  Dim myConnection as New OleDbConnection(ConnectString)Dim updateSQL as String = "UPDATE Table SET password = @Password WHERE Username = @ID"Dim myCommand as New oleDbCommand(updateSQL, myConnection)
Dim dgi as DataGridItemFor Each dgi in sls.Items  'Read in the Primary Key Field  Dim id as Integer = Convert.ToInt32(sls.DataKeys(dgi.ItemIndex))  Dim password as String = CType(dgi.FindControl("txtPass"), TextBox).Text
        'Issue an UPDATE statement...    myCommand.Parameters.Clear()  myCommand.Parameters.Add("@ID", id)  myCommand.Parameters.Add("@Password", password)
  myCommand.ExecuteNonQuery()Next
    End Sub
</script><body><form runat="Server">
<asp:datagrid id="sls" runat="server" AutoGenerateColumns="False" datakeyfield="Username">   <Columns>    <asp:BoundColumn HeaderText="UserName" datafield="Username"/>
         <asp:TemplateColumn HeaderText="Password">      <ItemTemplate>        <asp:TextBox runat="server" id="txtPass" Columns="10"              Text='<%# DataBinder.Eval(Container, "DataItem.Password") %>' />      </ItemTemplate>    </asp:TemplateColumn>
  </Columns> </asp:datagrid><asp:button id="Update" text="Update All" runat="Server" onclick="Click"/></form></body></html></code>Anyone have any idea as to why the id variable (error message above) is causing problems?

View Replies !
Server Not Connecting Fully
I am managing a number of SQL Server 6.5 systems via lan and wan connections.
I have a couple of servers which, althought I have an administrator account on the server and access through the fire walls, I can only connect if I set up entries under the client config utility using named pipes with the relevant ip address.
The servers are set up to use both tcp/ip and named pipes. When I do connect I dont get the traffic lights, and Service manager shows the servers in indeterminate state although I know they are running OK.
When I expand the server in EM, the SQL Executive also does not appear, again the service is running.
I am connecting to the server as sa, and can perform all sa functions.
I have connected to the server through security manager and it shows me as an administrator with sa rights.
We are using standard security on these servers.

Anybody any ideas ?

Thanks in advance

Tom

View Replies !
Can You Fully Qualify A Server Name In T-SQL?
I know that you can fully qualify a database and dbo in a statement, but is it possible to do this for different servers? For example, if you have three different servers registered in Enterprise Manager, can you write a script that could query any of the three servers?

View Replies !
&#34;Fully ANSI Compliant&#34;
In class we were told SQL Server 7 was fully ansi compliant. How can this be true when it dosnt support cascades ?

View Replies !
Not Fully Qualified Files
Hi all,

I need to create flat file connection managers. The connection Manager editor forces me to use fully qualified file names. Is there a possibility to use unqualified file names, because I need to reference to files in different directories with the identical file strcture.

Any Ideas?

Guido

View Replies !
Build Not Completing Fully
All:
I have about 35 packages in a SSIS Project and have been successful at building and deploying until now.  For some reason it build stops processing after 5 packages and does not update the bindeployment folder. 
 
Are there any logs to which I can refer to find out what is going on?  Any ideas why I am experiencing this weird behavior all of a sudden.
 
I had to delete a couple of packages from my project as I created new replacements for them.  I then noticed however that the packages did not get deleted from the bin and deployment folders and so I manually deleted them from those directories.  Could this cause any problems and if so can I fix it now?
 
I appreciate your help and advice!

View Replies !
SQL Server CE V3.1 Not Installing Fully
I downloaded the windows installer: SQLServerCE31-EN.msi

When I run it, it creates a directory in Program Files The directory has a number of dll files, a Readme file, a word document, and a text document. There is no link to actually launch SQLServer though. I've tried repairing, and removing and reinstalling but the results are the same. Can someone help me figure out how to actually launch this application?

Thanks.

View Replies !
Can &"Date Modified&" Col Be Automatically Updated W/o Trigger For Each Table?
Hello,
I am using SQL Server 2005 and ASP.NET 2.0. We have a very simple content management system where we have to keep track of date last modified for each row in all of our content tables. I know there's a "timestamp" datatype that is used for replication scenarios, but is there anything similar that I can use to set up a date_modified column for each of my content tables that will automatically update with GETDATE() whenever anything in a given row is updated?
Or do I have to create a date_modified column of smalldatetime datatype and write a trigger on update for EVERY single table of content that I have in the database? It seems there should be an easier way to do this than to write 20 triggers for my 20 content tables.
Thanks!

View Replies !
How To Correctly Update A Table Which Values Can Be Either Inserted/updated/deleted On Update?
Hi SQL fans,I realized that I often encounter the same situation in a relationdatabase context, where I really don't know what to do. Here is anexample, where I have 2 tables as follow:__________________________________________ | PortfolioTitle|| Portfolio |+----------------------------------------++-----------------------------+ | tfolio_id (int)|| folio_id (int) |<<-PK----FK--| tfolio_idfolio (int)|| folio_name (varchar) | | tfolio_idtitle (int)|--FK----PK->>[ Titles]+-----------------------------+ | tfolio_weight(decimal(6,5)) |+-----------------------------------------+Note that I also have a "Titles" tables (hence the tfolio_idtitlelink).My problem is : When I update a portfolio, I must update all theassociated titles in it. That means that titles can be either removedfrom the portfolio (a folio does not support the title anymore), addedto it (a new title is supported by the folio) or simply updated (atitle stays in the portfolio, but has its weight changed)For example, if the portfolio #2 would contain :[ PortfolioTitle ]id | idFolio | idTitre | poids1 2 1 102 2 2 203 2 3 30and I must update the PortfolioTitle based on these values :idFolio | idTitre | poids2 2 202 3 352 4 40then I should1 ) remove the title #1 from the folio by deleting its entry in thePortfolioTitle table2 ) update the title #2 (weight from 30 to 35)3 ) add the title #4 to the folioFor now, the only way I've found to do this is delete all the entriesof the related folio (e.g.: DELETE TitrePortefeuille WHERE idFolio =2), and then insert new values for each entry based on the new givenvalues.Is there a way to better manage this by detecting which value has to beinserted/updated/deleted?And this applies to many situation :(If you need other examples, I can give you.thanks a lot!ibiza

View Replies !
How Can I Set A Update Trigger On A Table In Database A After A Record Had Been Updated From Another Database B?
 

Hi guys, may I know is it possible to create an update trigger like this ? Assuming there are two database, database A and database B and both are having same tables called 'Payments' table.  I would like to update the Payments records on database A automatically after Payments records on database B had been updated. I can't use replication because both tables might having different records and some records are the same. Hope can get any assistance here, thank you.
 
Best Regards,
      Hans

View Replies !
How To Extract The Filename From A FULLY QUALIFIED NAME?
hi folks,

i am using foreach loop to load a whole load of files.
but these files are placed into various folders and with distinctive names.

each file is name is certain conventions that imply what sort of data is held in it. like

marketing_extract_20071204.csv
customers_extract_20071224.csv

but within the foreach loop i have a variable with the FULLY QUALIFIED NAME (FQN)as in:

Y:data_filesmarketing_extract_20071204.csv

thus i would like to find out how i can extract the filename from the FQN?

could i use a derived column expression or a script task?


many thanks for your assistance,

Nicolas

View Replies !
Known Bug: Visual SVN Integration Not Fully Working With RS/VS.net
Details here: http://groups.google.com/group/visualsvn/browse_thread/thread/b05c327597d9cfae

Why not email them here

support@visualsvn.com

and get them to hurry up and fix it!

View Replies !
Statement Failed Not Fully Quailified
 

I have a database that is released as part of a thrid party product.  I sent out an update but it failed at one of the customer sites because the objects were not fully quailified.  The original statement work at all but one of the sites.  The altered statement is what finally worked.  The SQL Server instances are installation and configuration are controlled by our interface so all instances are installed and configured the same.  Any idea on how this would happen?  It has never happened on previous updates.
 
Original Statement:
SELECT * FROM tblProcesses WHERE ProcessName='Name'
IF @@ROWCOUNT=0
     INSERT INTO tblProcesses(ProcessName, GroupTypeID, ProcessDesc) VALUES('Name', 1, 'Description')
GO

Altered Statement:
SELECT * FROM dbname.dbo.tblProcesses WHERE tblProcesses.ProcessName='Name'
IF @@ROWCOUNT=0
     INSERT INTO tblProcesses(ProcessName, GroupTypeID, ProcessDesc) VALUES('Name', 1, 'Description')
GO

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved