Archived Months
January 2003
March 2003
April 2003
May 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
April 2008


all groups > sql server programming > september 2004 > threads for wednesday september 29

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

sql server tape backup
Posted by mahesh at 9/29/2004 11:58:04 PM
Is there any Workaround for Taking Backup on Remote Tape ? Thanks and Regards Mahesh...more >>

How to keep from importing dupe records
Posted by (tcarnahan NO[at]SPAM cox.net) at 9/29/2004 10:42:29 PM
I am new to SQL Server and am having a problem trying to figure out the best way to approach it. I am working with SQL Server 2000. My database has two tables of interest with fields that are 60% identical (that is, most of the fields have the same data type and context, although they ...more >>

No records
Posted by Ishan Bhalla at 9/29/2004 10:29:02 PM
I am calling an SP from VB which returns 2 result sets. I use the 1 result set within the SP and use it to populate a TMP table which participates in a join in the second select statement. The sp runs fine from query analyser, but from VB I always get an empty recordset! Any suggestions...more >>

Nested query ???
Posted by Aleks at 9/29/2004 9:40:20 PM
Hi, I am trying to do the following query: Table # 1 : UserId = Integer (Unique ID) UserType = varchar (Could be for example = 'contact') Table # 2: Userloginid = Integer (Unique ID) UserId = Integer (It comes from the ID in table # 1) PermissionGroup = narchar (Could be for example = ...more >>

@@rowcount
Posted by Sanjay at 9/29/2004 9:15:04 PM
I want to do something like this. SELECT * FROM dbo.Contact [C] -- If any rows are returned then return to front end. IF @@rowcount > 0 Begin GOTO FinishSuccessModule ...more >>

Temporary Linked Servers
Posted by Lucas Tam at 9/29/2004 8:09:04 PM
Is there a way to create a link server that is only valid for a particular instance of a stored procedure? Or, should I just create a linked server which all SPs would use? Basically I want to avoid leaving a connection open indefinately to a remote server as this seems to take up resources...more >>

sp_executesql Resultset
Posted by John Byrne at 9/29/2004 7:37:02 PM
Hi, I need to use sp_executesql and I know how to use it to get one row, but dont know how to process a result set returned by executing sp_executesql. Anyone with an example would be great. Thanks...more >>

Benefits of using an SP for INSERTS and UPDATES?
Posted by Mike London at 9/29/2004 6:54:25 PM
Newbie question: What are the benefits of utilizing a stored procedure to INSERT and UPDATE data versus having your application directly execute a query? I have seen some mention of security issues, but I am wondering if there are any other reasons (db efficiency, simpler to code, etc.) ...more >>



handling apostrophe
Posted by darkstar_E2 at 9/29/2004 6:22:56 PM
Dear All, I have some trouble handling the apostrophe( ' ) contained in a string. Let say i have a string (boy's game). How can i pass this to a variable @str . I can't pass this using this: set @str = 'boy's game' -> this will produce error. But i do not want to use this: set @str = '...more >>

Learning SQL
Posted by John T at 9/29/2004 6:07:14 PM
Hi, What is the quickest and the best way to learn SQL? Regards John ...more >>

SQLDMO MediaPassword problem
Posted by Juxx at 9/29/2004 5:49:08 PM
Hi all, I'm trying to restore a db BackedUp with SQL-DMO.Backup2 with a MediaPassword specified. "Restore2" works perfectly, but if I try to access methods like ReadBackupHeader or ReadFileList I get this error: "[Microsoft][ODBC SQL Server Driver][SQL Server]Access is denied due to a pa...more >>

Problem with join with temp table
Posted by Ishan Bhalla at 9/29/2004 5:39:07 PM
Hello all, Is there any problem with a temporary tables participating in a join with a normal table? I wrote the following code and I keep getting the error: ‘Cannot resolve collation conflict for equal to operation.’ Thanks in advance!! --Create a temp table CREATE TABLE #Co...more >>

One statement to INSERT/UPDATE as needed??
Posted by A Traveler at 9/29/2004 5:26:46 PM
Hello, In Oracle (only as of v 9 i think) there is a sql statement they have called MERGE. This allows you to either INSERT or UPDATE a table with a given set of data, and a given set of fields to link on, and it will dynamically determine for each row whether to insert it or update it.This...more >>

Calculating previous business with calendar table
Posted by Terri at 9/29/2004 4:41:00 PM
I 'm using a calendar table with the following structure: CREATE TABLE [dbo].[Calendar] ( [CalDate] [datetime] NOT NULL , [IsWeekday] [bit] NULL , [IsHoliday] [bit] NULL , [IsWeekendDay] [bit] NULL ) ON [PRIMARY] GO When I run the following query I get the current date not yesterday ...more >>

Heterogeneous queries
Posted by Anubis at 9/29/2004 4:37:11 PM
Hello All, I'm trying to run the following script and I keep receiving the error below. I've tried setting ANSI_NULLS and ANSI_WARNINGS to on in all different points but nothing seems to help. Any help on this would be fantastic! -Anubis CREATE TABLE #TempEventTable ( RecordI...more >>

Name Result Set?
Posted by localhost at 9/29/2004 4:36:13 PM
I have a SP that returns 3 sets of results. I would like to name them so when they hit my ADO.NET DataSet, each result DataTable can be called by name instead of an ordinal. Is that possible? Thanks. ...more >>

server explorer create stored procs - what version of IDE?
Posted by Kyle Morris at 9/29/2004 4:34:19 PM
hi All, Could anyone confirm that I only need Visual Studio .Net Professional and *NOT* Enterprise Architect to allow me to edit/create Stored Procedures on a SQL Server 2000 database? Cheers! Kyle ...more >>

Insert\Delete Query
Posted by Lontae Jones at 9/29/2004 4:29:03 PM
Hello, I have a table called AgentLoc and I have a table called Agent same schema. I need a query that will look at both tables and if any matching Agents(pk) are found found delete them from Agent table and add Agentloc. Example some agents are in the agent and agentloc table and some are ...more >>

Need column list for dynamic SQL
Posted by Andrew Jocelyn at 9/29/2004 4:21:55 PM
Hi Can someone tell me the best way to get a column list from a table to construct a SELECT statement. I can get a list of columns: DECLARE @sql varchar(4000), @TableName varchar(100), @ColList varchar(1000) SET @TableName = 'BulkInsTemp' SELECT column_name from INFORM...more >>

Vb. Net access to SQL Server system tables
Posted by Pat Thomas Sr. at 9/29/2004 3:40:08 PM
I want to expand a current application in VB.Net that uses an XML file to house the names of stored procedures to run and their associated Crystal reports to execute after the stored procedure has completed. I want the expansion to provide for a select of the names of the stored procedure...more >>

Vb.Net access to SQL Server 2000 system tables
Posted by Pat Thomas Sr. at 9/29/2004 3:27:52 PM
I want to access SQL Server 2000 database via VB.Net to get the list of stored procedures and their associated parameter names and parameter types (date, string, etc.). I am trying to expand a current XML file and application that provides maintenance of SP's to run for related Crystal re...more >>

Nulls and EM
Posted by Lloyd Sheen at 9/29/2004 3:01:48 PM
Is there a way to enter null as a value in the table rows grid? All I can find in BOL is that NULL is treated as a string. Lloyd Sheen ...more >>

xp_cmdshell and dtsrun
Posted by Chris Szabo at 9/29/2004 2:59:05 PM
Good afternoon everyone. I have a very frustrating problem that I've been trying to solve all day with no luck. I have a DTS Package that performs a message queue task... simply dumps two global variables to a message queue. If I run the DTS Package through Enterprise manager it works. F...more >>

xp_fileexist
Posted by dave at 9/29/2004 2:43:43 PM
Has anybody had any incorrect results with xp_fileexist? I run: declare @exists int exec master..xp_fileexist '\\server317\Marketing\0323023096.jpg', @exists output select @exists And it returns 1 (meaning it should be there.) But the file is not in the folder. I could have swore ...more >>

Dynamic joins in Access Data Project form
Posted by M K at 9/29/2004 2:23:07 PM
Okay, I want to start by saying that the tables I'm working with are in our production database, and I can't change the tables. The database is SQL 2000. I use an Access Data Project just for some user side interface. Okay, for demonstration purposes I have 1 Order table and 3 SubjectInfo ...more >>

Re: Finding the columns in a table which user has access
Posted by ILMergeHelp at 9/29/2004 2:05:01 PM
Hi all, I have a table in which permissions are set on each column depending on the role/ group etc., Now my question is that how can I find the columns that the user has access so that i can only use those columns in the select for retriving data.. your help is greatly appreciated. R...more >>

Changing BLOB filegroup
Posted by Leila at 9/29/2004 1:54:22 PM
Hi, I change the filegroup of my table's BLOB using EM. How can I do that without EM (using TSQL). Many thanks, Leila ...more >>

Resetting DTS password
Posted by Tudor Sofron at 9/29/2004 1:47:18 PM
Hi all, can anybody please how to reset passwords for an DTS? I need to edit and run it...but the former DBA left without giving us the passwords... Thanks, Tudor ...more >>

Null Propogation
Posted by Mike Labosh at 9/29/2004 1:46:40 PM
Below, ssp.CompanyPhoneNumber is NVARCHAR(20) NULL, and its contents are a freshly bulk inserted data file, so some of its values are null. The three columns in the PhoneNumber table are what I'm trying to focus on for this example. out of 1.5 million records, only 600,000 have area codes an...more >>

SQL Syntax Error
Posted by ST at 9/29/2004 1:02:57 PM
Hi, I posted yesterday with questions about transposing a table from columns to rows. This is the SQL query I came up with, but it keeps giving me a syntax error near "CASE". Does anyone have any clue why? I'm very new to SQL, so any help is appreciated! This is what the table roughly ...more >>

How do I determine when a stored procedure was last modified using ALTER PROCEDURE?
Posted by Wayne Sheffield at 9/29/2004 12:26:56 PM
How do I determine when a stored procedure was last modified using ALTER PROCEDURE? If I use drop/create, the create date shows up in sysobjects, but this doesn't change when using alter proc. Thanks, Wayne ...more >>

How do I create a record set whose values depend on conditions
Posted by Sam at 9/29/2004 12:04:25 PM
Hi, Please find the SQL script below... Very simple IP management database that has 3 tables: tblHardware is where I keep all my network devices' information.. Fields are HardwareID and IPStatusID tblIPStatus has 3 records in it: Static IP, Dynamic IP and "Does not use IP"... Fields a...more >>

Table Value Function Parameters
Posted by chuckb NO[at]SPAM empiricdesign.com at 9/29/2004 11:59:08 AM
Hi, I'm trying to use a function that returns a table by passing in a column name to the function. All the examples I see pass in a hard-coded value. I get the following error: Incorrect syntax near '.' Tables: create table tblOne ( theID int, Col1 varchar(10) ) create table tbl...more >>

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Posted by Savas Ates at 9/29/2004 11:47:56 AM
in asp page im getting this error how can i solve it.. yesterday the codes work but i setup visual studio 6.0 now it doesnt works.. ...more >>

joining a table with itself to produce multiple rows
Posted by Bernie Yaeger at 9/29/2004 11:30:34 AM
I'm trying to 'pivot' a table thus: To simplify, the table has a title, quantitya, quantityb, quantityc. So the table may have 3 rows: games 11 0 26 houses 20 9 42 cars 0 8 3 I want to end up with a new table with 9 rows: games 11 games 0 games 26 hou...more >>

Is it possibe to make the query more simpler?
Posted by Vladimir Vasiliev at 9/29/2004 11:15:07 AM
Hi, we have very simple task to do but the query performing that task looks a bit complex. We have following table CREATE TABLE [VerdictSample] ( [VerdictId] [int] NOT NULL , [SampleId] [int] NOT NULL , CONSTRAINT [IX_VerdictSample_SampleId] UNIQUE NONCLUSTERED ([Sampl...more >>

Delete from Assistance
Posted by Lontae Jones at 9/29/2004 11:13:05 AM
How can I delete this data Select * from Agent full outer join Agent_phoenix on Agent.Agent = Agent_phoenix.agent where Agent.State = 'OK'...more >>

@@identity odd results...
Posted by THX-1138 at 9/29/2004 11:07:50 AM
Hi, I have transactional replication with queued updating. When I'm running this function on subscriber: INSERT INTO matchup_edge (fk_game_id, offense, defense, coaching, misc, intangibles, overall, evaluator) VALUES (1292, - 1, - 1, - 1, - 1, - 1, - 1, 'Covers Team') SELECT ...more >>

French Characters and Accents. How do I query?
Posted by ulchm NO[at]SPAM lonelyprogrammer.com at 9/29/2004 10:42:57 AM
Hello... I have a table of artist names like: Beyoncé Knowles Whitney Houston Tom Jones When I create an SQL query in an ASP page, I don't know how to query the database to get the names with the accents, like Beyoncé Knowles. "SELECT * FROM Artists WHERE Name LIKE 'Beyonce'" How d...more >>

update only minutes of a date value
Posted by vncntj NO[at]SPAM hotmail.com at 9/29/2004 10:11:07 AM
how can i update only the minutes in date/time value like: Time 12:09 PM 11:18 AM 1:32 PM to 12:00 PM 11:00 AM 1:30 PM...more >>

Conditional Sum upto a maximum value
Posted by Steve Beach at 9/29/2004 10:03:12 AM
Greetings. A coworker brought up an interesting problem and solved it via a cursor. Since cursors are evil I said "I bet there is a SET solution to this". But I can't figure it out. This is more an interesting challenge and learning experience rather then immediate need. DLL posted below....more >>

SQL Server 2000 issues
Posted by Tracy at 9/29/2004 10:02:59 AM
Does anyone know what this error message means? Our database keeps kicking into Suspect mode with severity 21. We use SQL Server 2000, running on Windows 2000. The error message that appears is 'Operating system error 997 (Overlapped I/O operation is in progress.) on device 'e:\logfiles\...more >>

Big question - Average of my account per month.
Posted by Pedrito Portugal at 9/29/2004 9:29:11 AM
I have a table Movements with 2 fields : Date and amount. The goal is to transform my table in 1. to result in point 2. 1. Current Situation for the account (Extract) TABLE Movements Date Amount ---------------------- 2004-08-01 1000 2004-08-05 500 2004-08-10 750 2004-08-15 -200 200...more >>

Stored Proc Returns CURSOR
Posted by kpg at 9/29/2004 9:24:07 AM
Hi All, I want to return a recordset (cursor) from a stored procedure. The sp is: ----------------------- CREATE PROCEDURE MyProcedure @MyValue CURSOR VARYING OUTPUT AS SET @MyValue = CURSOR FOR SELECT * FROM MyTable open @MyValue GO ----------------------- I think this is correct...more >>

Restore a database from a backup file to a different db name
Posted by ggao NO[at]SPAM och.ca at 9/29/2004 9:07:10 AM
I have a SQL 2000 server. I use enterprise manager to restore databases. I'm able to restore databases from SQL backup files when the backup file is small. However when I try to restore large databases (I have 3 databases with files size above 1 Gb) I get this "Timeout Expired" msg. The msg w...more >>

Format
Posted by Phil at 9/29/2004 8:44:37 AM
Hi All, I have a text string that looks something like this TerracedMewsFlat All I want to do is break up the word based on the Capital letters so it looks something like Terraced, Mews, Flat Does anyone know a easy way of doing this. Any help would be great. Thanks Phil...more >>

Restore problem - restore headeronly from disk = "filename.bak" returning multiple rows?
Posted by Puget4753 NO[at]SPAM yahoo.com at 9/29/2004 8:31:15 AM
Is this possible? I did a backup script like this: backup database dbCustomers to disk = '\\bert.xxxx.com\sqlbackups\SQLSERVER\USER_DB\ServerSwitch\dbCustomers.bak' and then a restore like this: restore database dbCustomers from disk = '\\bert.xxxx.com\sqlbackups\SQLSERVER\USER_DB\Serve...more >>

error handling
Posted by Mirna at 9/29/2004 8:19:52 AM
Hi , I have a TSQL script that when run as SQL Server Agent job sometimes generates the error that is not handled properly . The same script when being run through SQL Query analyzer handles the same error as it is supposed to handle. Why am I seeing different behaviour ? Thanks very ...more >>

Error 87 from GetProxyAccount on line 604
Posted by Chris Clements at 9/29/2004 8:12:10 AM
I am trying to set up a regular SQL login which is NOT a sysadmin with the ability to run xp_cmdshell. It's not the best idea, but I have no choice. I granted it execute permissions on the proc and used xp_sqlagent_proxy_account to point to a login which is a local admin on the server. ...more >>

Drop Index
Posted by Rajah at 9/29/2004 8:08:18 AM
Hi, I want to delete indexes in a table thru stored procedure. I user the statement 'Drop index 'XR_Vend.IX_XR_Vend_MatchId2' and getting following error 'Cannot drop the index 'XR_Vend.IX_XR_Vend_MatchId2', because it does not exist in the system catalog. Any advice would very much a...more >>

Looping using cursor
Posted by arif.faruqi NO[at]SPAM gmail.com at 9/29/2004 7:56:36 AM
Hi Folks, This is the query I am trying to write. I have a table which can have multiple rows for one column say Jobid but different values for another column say ticket Id. Table looks like this. Job Id Ticket Id 1 100 1 99 2 20 2 ...more >>

importing to SQL from text file
Posted by hngo01 at 9/29/2004 7:43:22 AM
Hi, please tell me best way to import into SQL table from this flat file. Thanks DATA FILE HAS 01111111111115414 hollyhbrook Lane Suite 3 None denver NC48110-1111 0212345678912345200 02333333335555554590 FILE SPECS: Record Type 2 ...more >>

CASE in Trigger
Posted by jez123456 at 9/29/2004 7:41:08 AM
Here is my trigger CREATE TRIGGER trCalculateBalance ON [dbo].[tblEntitlement] FOR INSERT, UPDATE, DELETE AS IF @@ROWCOUNT=0 RETURN UPDATE tblEntitlement SET decBalance = 28 + decPreviousRollOver - decPreviousBorrowed + decExtraDaysTotal + decNextBorrowed - decYearDurationTotal, C...more >>

SQL Server Logs
Posted by Tracy at 9/29/2004 7:25:15 AM
This may seem like a trivial question....... When a client views the server logs in the Management folder of the Enterprise manager, does this disallow the server to write to the log? Would this cause the server to crash? Thank you...more >>

Basic Question Re Quantities
Posted by jpuopolo NO[at]SPAM mvisiontechnology.com at 9/29/2004 7:24:31 AM
All: I have a very basic question. Let's suppose I have table T with one column QUANTITY. Let's also suppose T has one row, with the value 100 in the QUANTITY column. Now, what I want to do is.... 1. Read the value of QUANTITY 2. If the value of QUANTITY > 0, decrement QUANTITY Th...more >>

RESTORE log problem
Posted by Jimbo at 9/29/2004 7:23:18 AM
Dear All, I'm a little bit confused about the RESTORE Command, let me explain. We backup our db on a different server, every hour for the db, and every 10 minutes for the log file So if at 12.55 our server crashes then we need to resore the db and 5 log files. restore database Pari...more >>

Selecting Distinct items from multiple tables
Posted by nikespex NO[at]SPAM hotmail.com at 9/29/2004 7:07:00 AM
I am using the following query to return a list of creditors from three tables: SELECT CreditorName,Addr,City,StateAbbrev,Zip FROM SClaims,States WHERE Pet = #SESSION.UID# AND SClaims.State = States.StateID UNION SELECT CreditorName,Addr,City,StateAbbrev,Zip FROM UClaims,States WHERE Pet ...more >>

Error in recordset.source string?
Posted by JasonNW NO[at]SPAM i-55.com at 9/29/2004 7:02:54 AM
Hi, I am trying to use the GO statement in my recordset.source string and i get an error "Incorrect Syntax Near GO". I use vbcrlf & " GO " & vbcrlf so that go appears on a line by itself or else sqlserver will not run the query. Is it possible to return multiple recordsets within one records...more >>

MSDE - Using Instances
Posted by Pedrito Portugal at 9/29/2004 6:55:03 AM
I have the following code in a form of my VB application: "... strCnn = "Provider=sqloledb;" & _ "Network Library=DBMSSOCN;" & _ "Data Source=" & ctlServidor.Text & ";" & _ "Initial Catalog=" & ctlBD.Text & ";" & _ "Tr...more >>

Unicode chars
Posted by x-rays at 9/29/2004 6:31:50 AM
Hello Experts, Which Option do I have to turn on when creating a stored procedure that has unicode characters inside? Thanks in advance....more >>

Date Range Comparisons in MSDE failing
Posted by Jim Evans at 9/29/2004 6:19:59 AM
I have an SQL statement that I am programmatically populating, depending on user input. The string is... SELECT * FROM Tickets WHERE (TicketDateStarted > #" & Date1 & "#) AND (TicketDateStarted < #" & Date2 & "#) ORDER BY TicketDateResolved I have checked all of my fields and they are a...more >>

Openrowset Incorrect Syntax
Posted by Anubis at 9/29/2004 6:02:54 AM
Hello, Can anyone tell me why this keeps reporting as incorrect syntax? DECLARE @ORS [nvarchar](4000), @ORS2 [nvarchar](4000), @ApplicationPath [nvarchar](100), @ProcessingFile [nvarchar](50) SET @ApplicationPath = N'D:\WebFiles\Live' SET @ProcessingFile = N'File-029239.csv' SET @OR...more >>

sp_recompile
Posted by JOE at 9/29/2004 5:56:39 AM
Hi all, Is there any downside to running sp_recompile on all objects in my data base once a week? Should I run this against system objects as well? TIA, Joe...more >>

STored Procedures and results ets
Posted by Lawrence at 9/29/2004 5:55:13 AM
Hi I am trying to create a program (does not matter with what) that will investigate a store procedure and display the data to the end user in a different manner. If the SP receives parameters and returns an OUTPUt, there are quite a few system SPs that do this. My problem is when there ...more >>

Trigger on View
Posted by jez123456 at 9/29/2004 4:39:03 AM
No sure if this is possible but here goes. I've created a quite complex view based on various tables and other views. The final value that is calculated with the view needs to be entered into another table record. This final value in the view can be altered by changing any of upto 4 base ...more >>

which is faster "IN" or field name
Posted by sahridhayan at 9/29/2004 3:51:02 AM
Hi all, I am having a situation please tell me which is faster.. i have a table say customer master, and i am having field called customer type which is a list of values like "A","B" or "AB",etc list count some what like between 10-15 i am using this table in many joins.. i have millions ...more >>

SQL Server Compare Database Solution help needed please
Posted by Stephen at 9/29/2004 3:23:03 AM
I have to write a .Net application which can compare SQL Databases including things like: - DB structure, PK's, FK's, indexes and types of indexes i.e. should be able to detect if the same index has cascade set on one db and not on another, or unique on one and not the other, Constraints, ...more >>

Usage of temporary table
Posted by babz at 9/29/2004 2:11:02 AM
Hi I am using 8 tables in a query. In my select query I am using all the 8 tables. Is it good? My friend is suggesting that to achieve good performance, populate the non-driving table data in temporary table and join the other tables with that temporary table to get the better performa...more >>

send sql mail if got duplicate data
Posted by tchangmian NO[at]SPAM yahoo.com.sg at 9/29/2004 1:52:58 AM
currently i would like to send sql mail to few users when i found that got duplicate data in the table.The following is my coding in stored procedure : if not exists(select catalog_code, count(catalog_code) from rd_awards group by catalog_code having count(catalog_code) > 1) ...more >>

Can I do this with a single SELECT...?
Posted by glenn NO[at]SPAM glenncarr.com at 9/29/2004 12:49:28 AM
I have the following table (abbreviated for clarity): player_stats[ id, number_value, stat_field_id, game_id, player_id ] players [ id, lastname ] And I'm able to get the top <n> totals for a particular stat_field_id from player_stats with no problem: SELECT TOP 5 SUM(number_value) AS...more >>

Newbie needs help with SQL statement
Posted by George J at 9/29/2004 12:43:33 AM
Hello, I'm having a difficult time finding the right sql syntax to perform an update. Here is the situation: I have two tables, each with an orderid field and a removal_date field. There is a one-to-many relationship between table A and table B, with B having multiple records to each one in...more >>

Question on Locks
Posted by rgn at 9/29/2004 12:17:03 AM
Hello All, I have a question on Locks. The following script should also help : CREATE TABLE [dbo].[nolock1] ( [a] [int] NULL ) GO a --- 1 1 2 From Terminal One BEGIN TRANSACTION INSERT Nolock1(a) Values (3) From Terminal Two ==> before a commit is issued....more >>

Arithmetic overflow error
Posted by jez123456 at 9/29/2004 12:17:02 AM
Here is the code to create and populate 3 test tables. CREATE TABLE [tblAbsence] ( [intAbsID] [int] NOT NULL , [strLogonName] [varchar] (30) COLLATE Latin1_General_CI_AS NOT NULL , [intYear] [int] NOT NULL , [strAbsRsnCode] [varchar] (12) COLLATE Latin1_General_CI_AS NOT NULL , [dtmAb...more >>


DevelopmentNow Blog