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 > december 2005 > threads for wednesday december 28

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 31

ACCESS has 4 samples
Posted by maomao at 12/28/2005 7:30:15 PM
My English is pool. I want to learn ACCESS step by step. I found that ACCESS has 4 samples,but I can¡¯t find the Chinese lesson for the 4 samples. Who can help me? Thank you! ...more >>

For Xml Auto Help
Posted by Kevin Thomas at 12/28/2005 6:34:06 PM
In sql 2005 if I have a query along the lines of: select * from myTable for xml auto, elements xsinil, root('myRoot') I will get back one row, one column, filled with a nice xml string. The problem I'm having is figuring out how to access that data, such that I can put it into a local va...more >>

detect and solve deadlocks
Posted by Vikram at 12/28/2005 6:27:18 PM
Is there any way by which deadlocks can be detacted and then appropriate action can be taken (in vb.net code or sql) to avoid it. instead of throwing error we can revoke the sp call.. thanks ...more >>

producing a date time report in SQL/DTS
Posted by Blasting Cap at 12/28/2005 6:26:18 PM
I have need to produce a report (excel sheet actually) from SQL that would run each Tuesday and each Friday of every week. What needs to be on the Tuesday report is everything that came in from the Friday midnight time, until the Monday midnight time. The friday report(sheet) would have ev...more >>

Block row from been updated
Posted by Lina Manjarres at 12/28/2005 5:16:02 PM
I need to block some rows from being updated using mssql 2000. this is because some users are changing data after the product has been factured. The VB program does not let any body to change the data but some advanced users have done it directly to the database. If some one can help me I w...more >>

Server Memory usage\Performance problem
Posted by Magnus Österberg at 12/28/2005 5:08:52 PM
I am experiencing the following problem; I boot my Windows 2000 sp#4 machine to get a fresh machine. The hardware is Pentium 4, 3 ghz with 512 mb RAM. There are no other heavy applications running on the machine. I check sqlservr.exe's memory usage in Task manager. It is ca 20 mb, every...more >>

Saving Store procedure on table
Posted by Roy Goldhammer at 12/28/2005 4:53:31 PM
Hello there I have some store procedure that return query as result. Is there a way to store the result in table? ...more >>

INSERT multiple rows with same data
Posted by Daniel Löliger at 12/28/2005 3:08:55 PM
Hello, I was wondering how I can do this the best way. Source table: CREATE TABLE [dbo].[MaterialInventory] ( [MaterialInventoryID] [int] IDENTITY (1, 1) NOT NULL , [Serial] [nvarchar] (15) , [BuyPrice] [float] NULL , [BuyValue] [float] NULL , [BuyDate] [datetime] NULL , [DateOu...more >>



inserted in dynamic query
Posted by helpful sql at 12/28/2005 3:02:07 PM
Hi, Is it possible to use inserted or deleted tables in a dynamic query in a trigger? Thanks. ...more >>

Full Text Search
Posted by Islamegy® at 12/28/2005 2:36:17 PM
In my table i need to use Full Text Search on text column here is my table ================================== CREATE TABLE [AH_SubMaster] ( [Master_ID] [int] NOT NULL , [Fakra_No] [smallint] NOT NULL , [Fakra_Text] [text] COLLATE Arabic_BIN NOT NULL , [Index_ID] [int] NULL , [UserID] [i...more >>

column data types?
Posted by Les Stockton at 12/28/2005 1:56:03 PM
I know there's a way to query the schema, but don't recall exactly. Does anyone know how to query the database to determine the field type, length, precision, scale, etc? ...more >>

complex and large triggers
Posted by Gerard at 12/28/2005 1:22:26 PM
If a business scenario related to data gathering for statistical analysis merits large complex triggers. Thes triggers pre-populate tables with data based on gathered business rules and make use of nested stored procedures and cursors. What is then good practice? Are cursors to be kept small ...more >>

Apostrophes and Dynamic SQL
Posted by Scott Heffron at 12/28/2005 12:56:04 PM
I am trying to Ad-hoc query from a user input(internal app), where the user enters in a name just as "Al's Game Crazy". Each time I do this, the Apostrophe gets in the way. I have tried using the "char(39)" setup for with the like statement. But I keep getting and error. Error returned:...more >>

Table design question on LARGE table
Posted by Michael at 12/28/2005 12:50:04 PM
Hi Everyone, I have several tables in a current DB app I'm working on that contain over 120 fields. I'm looking for suggestions to cut down the number of fields that I need. I know that most fields will not be affected by my redesign, but I currently have several fields that could have mulitp...more >>

Indexes & "OR"
Posted by Rafael Chemtob at 12/28/2005 12:48:19 PM
Hi, i have 2 tables: table 1 - called Feed. contains the following fields: productName PartNumber ManufacturerName PartNumberManufacturerName (this field concatenates the part number field and the manufacturer name field). Table 2 - called Products. contains the following fields: produ...more >>

help in writing dynamic sql query
Posted by Kumar at 12/28/2005 12:46:03 PM
Hi, I got most of this code from somewhere else on the net to compare two tables ...iam just trying to customize it to my requirement. Here I want to compare table1(new),table2(old) to find out whats the new values added or deleted in "name" column of Table1 when compared to table2. -- ...more >>

Query help
Posted by Confused at 12/28/2005 12:41:05 PM
I need a grouping and I'm not quite sure how to group it...an example of my current query and the returned data is below. After that is more detail about how I need to group it. Thank you! SELECT ct1.Description AS Exemption, ISNULL( ej.TotalPeople,0) AS NumPeople, ct1.Code AS Code, Web =...more >>

linked server and pipe delimted file
Posted by sqlster at 12/28/2005 11:31:03 AM
I have can query a comma delimited file in query analyzer easily. Content of mytest1.csv file on txtsrv21 linked server is as follows /* c1,c2,c3 11,12,13 22,33,44 55,66,77 88,33,12 */ When I run the following select: SELECT c1,c2,c3 FROM txtsrv21...[mytest1#csv] I get the following res...more >>

If Else If condition failing
Posted by tsigler NO[at]SPAM gmail.com at 12/28/2005 11:18:01 AM
This is only the second stored procedure that I've written, and I'm having some issues with a conditional statement that I can't figure out. The statement has a conditional If statement with two Else If's that checks for a passed parameter's value (an integer I pass when executing the SP via AS...more >>

Execution Plan
Posted by Ed M at 12/28/2005 9:55:02 AM
Is there a way to remove the database name and ".dbo" from the object name in the execution plan? I almost never do a cross database join, and all tables are owned by dbo. Since there is limited room, I'd much rather see the full table name and index being used. Also, does anyone know why the ...more >>

Using a Join Twice to the Same Table Within a Select Statement
Posted by RitaG at 12/28/2005 9:51:03 AM
Hello. I have some SQL statements that are working but I think there has to be a more efficient way to accomplish what I'm trying to do. I have two different columns in a table (SuperMatch) that need to find a corresponding value from another table (ProviderSpecialty), using the values f...more >>

listing non system databases
Posted by Brian Henry at 12/28/2005 9:01:45 AM
I know sp_databases can list all the databases, but how can i only list non-system databases? I just want to get a list of user databases ...more >>

Using Uniqueidentifier in a string
Posted by janne at 12/28/2005 8:52:45 AM
Hello, I'm trying to do something like this: CREATE PROCEDURE my_proc( @id uniqueidentifier, @string varchar(100)) AS EXEC('SELECT something FROM somewhere WHERE table.id =' +@id) I need to have it in a string because I'm using variables for "something" and "somewhere". It doesn't se...more >>

Any harm in adding a primary key...
Posted by Eric at 12/28/2005 8:25:05 AM
after my table has been created and populated with data? I have an identity column (named 'CID') on my customers table. This value is often used in my queries and I'd like to take advantage of a clustered index (since none currently exist on the table). Will making this column a primar...more >>

Problem executing stored procedure to update all rows of a table
Posted by Jack at 12/28/2005 6:49:03 AM
Hi, I got a stored procedure which interacts with the pubs database. The following is the code for the stored procedure: CREATE PROCEDURE usp_UpdatedPrices_para @Type char(12)= '%', @Percent Money AS UPDATE titles SET Price = Price * (1 + @percent/100) WHERE Type = @Type Now, if I execu...more >>

ALTER TABLE using OleDb
Posted by Jeff User at 12/28/2005 3:24:41 AM
Hi SQL 2K ..NET1.1 I use an oledb command.ExecuteNonQuery() to run the following sql statement: "ALTER TABLE Test ALTER COLUMN col2 varchar(20) NOT NULL" BOL states that ExecuteNonQuery will return the number of rows affected when issuing an UPDATE, INSERT, and DELETE statements. IT wi...more >>

Collation difference between SQL 6.5 server and SQL 2000 server
Posted by Ravi.Meenakshi NO[at]SPAM gmail.com at 12/28/2005 1:47:03 AM
Hello, We are facing the following problem: We have installed SQL 6.5 server Enterprise edition on Windows 2000 Advanced server. On this system, in the regional settings, the Locale is Japanese and in Office 2003 Language settings also, we have added Japanese. We have another system with...more >>

Join Query
Posted by A J at 12/28/2005 1:20:39 AM
Hi, I have 3 tables as follows (simplified for posting here): Table1 ---------------------------- CREATE TABLE [dbo].[Customer] ( [CustomerID] [int] IDENTITY (1, 1) NOT NULL , [CustomerName] [varchar] (50) NOT NULL ) ON [PRIMARY] Table2 ---------------------------- ...more >>

32 bit CLR-code and 64 bit SQLServer
Posted by Paletti at 12/28/2005 12:15:56 AM
Hello, is it possible to deploy CLR-code developed with a 32 bit VS.NET on a 32 bit machine to a 64 bit SQLServer? Thanks Tobias ...more >>


DevelopmentNow Blog