Groups | Blog | Home


Archived Months
January 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
all groups > sql server (alternate) > october 2004 > threads for october 1 - 7, 2004

Filter by week: 1 2 3 4 5

dynamic killer
Posted by rooty_hill2002 NO[at]SPAM yahoo.com.au at 10/7/2004 9:58:03 PM
Hi, guys! I want to build a scheduled job to kill any connections from server 'WS1187' built by some VB applications. The code reads something like this: declare @id int begin set @id = (select spid from sysprocesses where hostname='WS1187' and program_name='Visual Basic') kill @id end ...more >>


Removing non-printing characters ...
Posted by ralph_noble NO[at]SPAM hotmail.com at 10/7/2004 7:45:57 PM
Folks ... I have a pipe-delimited ASCII text file with a lot of different non-printing characters. Rather than try and figure out all the non-printing characters that exist in this 17+ million record database, I was hoping someone might have already written a script they'd be willing to share th...more >>

Changing Column Name on a table
Posted by mokles at 10/7/2004 6:29:23 PM
Hi All, I am trying to change column name on an existing table. I am using SQL Server 7. As the table is quite big, it is taking quite long time to do it. By the way I could change the column name only through the Enterprize Manager. Is it possible to change the column name using SQL scrip...more >>

Current user
Posted by William F. O'Neill at 10/7/2004 2:59:21 PM
Am using SQL Server 2000, and am writing some audit triggers. How do I get the the name of the user, eg. user_id or current_user. Just spent an hour looking through the SAMS book for this, and can't find any reference. ...more >>

Regex parser Text field
Posted by sickmat NO[at]SPAM iit.edu at 10/7/2004 2:46:49 PM
I have a text field that contains abstract information formated in HTML, I'd like strip the HTML and insert the data in another Text field within a DTS package. Is this possible? any suggestions would be appreciated Matt...more >>

creating trigger to auto set create/modify dates
Posted by efinney at 10/7/2004 1:02:41 PM
Hi, I'm a newbie to sql server and this may be a really dumb question for some you. I'm trying to find some examples of sql server triggers that will set columns (e.g. the created and modified date columns) if the row is being inserted and set a column (e.g. just the modified date column) ...more >>

Desperate! - Need simple MSSQL server monitoring scripts, ideas, etc that can be performed by operator types (non-programmers)
Posted by emebohw2 NO[at]SPAM netscape.net at 10/7/2004 11:44:57 AM
Does anyone have any basic, simple scripts of sp's that I can give my computer operators to use to monitor for serious conditions on our sql servers? We are new in the ms-sql arena, a small shop and we cant really purchase any tools to monitor these servers, but we need some basic checks that we...more >>

Relationships getting deleted (MS SQL)
Posted by lalalulu24 NO[at]SPAM yahoo.com at 10/7/2004 11:18:21 AM
Dear All, I got a wierd problem which I haven't been able to explain. I am working on MS SQL 2000. I don't know for what reason, the relationship between Parent/Child table is getting deleted. When I open up the ER diagram in MSSQL Enterprise Manager, I see the relationship line come up for...more >>



SQLServer 2005 Beta
Posted by Peter Morris at 10/7/2004 10:35:31 AM
What's the deal with SQLServer 2005 Beta? I've just got a magazine with a free cover disk with VB 2005 beta, and also includes SQLServer 2005. I've installed it, but I can't get it to do anything. It seems to have installed ok, there are the data files for allthe usual system and example da...more >>

Error when writing to SQL server through asp page using windows authentication
Posted by glenn.mantle NO[at]SPAM bt.com at 10/7/2004 9:09:40 AM
I have an asp drive web page that writes a row to a table on sql server 2000. The web site is set to use windows authenication and the sql server is set to use windows authentication. This process works fine on windows xp sp 1 machines but on win2k sp4 machines logged in as the same user i get...more >>

Transaction through stored Procedure
Posted by deepsmehta NO[at]SPAM gmail.com at 10/7/2004 4:01:39 AM
i have to update two tables from ASP pages with same data but i want that both of them should be updated at one time. If either of them is not updated then my transaction should roll back.I want this thing to be in a stored procedure. so that i have to write an execute statement only on the ASP ...more >>

limit the access
Posted by rooty_hill2002 NO[at]SPAM yahoo.com.au at 10/6/2004 10:59:56 PM
Hi, guys! Some of my applications are sharing same SQL login/password to connect to a database called "MyDB" on server "MyServer" . The password is encrypted and stored in registry or some configuration file the applications use. The applications use certain arithmetic to decrypt the password...more >>

Search Text in Database
Posted by Greg Cyrus at 10/6/2004 8:51:56 PM
Hi, I would like to use keywords inside a record to search for - like a searchengine. How can I design the table? Right now I would store data in Memo-Column in a format like ";apple;banana;lemon;". I would use a INSTR(ring)-function - but I wonder if the performance is still OK then - even ...more >>

Indexed Views Vs temp tables
Posted by ravirneni NO[at]SPAM trafficmp.com at 10/6/2004 5:06:50 PM
With my understanding of indexed views and according to books I read "indexed views" are supposed to perform much better than "temp tables" (temp table having primary key and indexed view with clustered index on the same keys). But when I tried in my system I am getting opposite results. With ...more >>

how do you know what transation ID to play forward after restore?
Posted by emebohw NO[at]SPAM netscape.net at 10/6/2004 1:15:51 PM
When you restore a backup from a point in time, how do you then know which transaction ID to start with when you want to roll forward from that point in time to another point in time?...more >>

audit select on a table?
Posted by praimnath.sankar NO[at]SPAM cogeco.com at 10/6/2004 11:37:48 AM
Is there a way to audit 'select' on a given table;...more >>

Log file of test database bloating
Posted by sasrani NO[at]SPAM boathouse.com at 10/6/2004 7:18:35 AM
A test database that we used in one of our implementation pilots was abandoned around 4 months back. The database when abandoned had a log file size of less than 500MB. The log file has been steadily bloating (just came to my attention) and has reached 8.5GB. The database has not been used since...more >>

Compare two column values with leading zeros
Posted by kattukuyil NO[at]SPAM hotmail.com at 10/6/2004 6:57:42 AM
Hey, This is what I would like to do: =========== Declare @chvBOLNumber Set @chvBOLNumber='0001234' Select * from BOL where BOLNumber=@chvBOLNumber I want to return the row/rows when BOLNumber=1234 ============ The problem is the leading zeros. @chvBOLNumber can be 01234 or 001234 or ....more >>

Dynamic SQL and function
Posted by hdenooijer NO[at]SPAM hotmail.com at 10/6/2004 2:18:15 AM
Hi i have a problem i have the following Trans SQL statement in a function SET @desc= (Select description From table Where id = @id) Now i want to make table dynamic. Something like this SET @desc= (Select description From @table Where id = @id) Yeah yeah i know i can't do this: SET ...more >>

Is ther any new virus on sql server 2000 (sqlmangr.exe)
Posted by Lavi.shachar NO[at]SPAM retalix.com at 10/5/2004 10:49:34 PM
Is ther any new virus on sql server 2000 i have the latests ver with all patches and i get the same err at 6 pc's in mt department "SQLMANGR.EXE app error the inst... at '' ref memory at .....could not ... " i did a restart i reinstall sql in one of the pc's and i stil get it even if i run ...more >>

odbc sql server driver timeout expired
Posted by efinney at 10/5/2004 9:05:18 PM
Hi, Has anyone ever had trouble using the query analyzer tool through a vpn client? I'm able to connect outside of work to a sqlserver db on my company lan with enterprise mgr, but the query analyzer times out every time I try to connect from outside of work. Both utilities work fine at w...more >>

auditing logins in Analysis server
Posted by tim groulx at 10/5/2004 8:49:23 PM
Hello, Can anyone tell me how to monitor logins/logouts to Analysis Services databases? I use Profiler to do so in SQL, but cannot find a way to do it in AS. Thanks, Tim *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for...more >>

Lookup value query joining two tables
Posted by gudia97 NO[at]SPAM yahoo.com at 10/5/2004 8:43:53 PM
David: It is not a join as keys are not present in both the tables; between will just restrict the values for test_val. However, the following solution has been proposed by Joe Celko, which works. Thanks to everybody who contibuted. David and Joe, thanks so much. UPDATE T1 SET factor ...more >>

Hiding Data
Posted by elmo at 10/5/2004 2:28:38 PM
Hi, I am intetrested to know if there is a way to hide the information in a specific column in my table. SQLServer 200. Something like a password protection were you only see *****. I have a DBA but want to hide salary information from him that is stored in the database. Any suggestions Th...more >>

problems registering new database with EM.
Posted by alan.frush NO[at]SPAM healthtrio.com at 10/5/2004 12:09:52 PM
One of our developers is trying to register a database that is not local to his computer with his Windows domain account versus sql server. When registering the server he gets an error message that SQL Server does not exist and he is unable to register the database although his windows account ...more >>

MS SQL Server client under linux/unix.
Posted by semovrs NO[at]SPAM concord.edu at 10/5/2004 11:14:57 AM
Hi, everyone! I was just wondering if any of you knows of a linux/unix client (preferably on the command line) that would connect to ms sql server? Any hints would be appreciated! Roumen....more >>

password hash
Posted by Jens U. K. at 10/5/2004 10:37:34 AM
It seems like there is no built in procedure for making a password hash in SQL2000. Am I wrong. Do I have to make it from scratch myself or is there samples out there? /Jens Ulrik ...more >>

Adding a day to a date.
Posted by cpatel1 NO[at]SPAM gmail.com at 10/5/2004 8:57:47 AM
Pls help if you can. I have two dates, date1 and date2. Basically I want to set date2 = date1 + 1 day for a range of dates that I can select out. Is there any way to do this?...more >>

Transposing
Posted by Leszek Gruszka at 10/5/2004 8:19:26 AM
Hello! I need to transpose some columns into rows and rows into columns. I know, tha i can do it by cursor, but i don't know how make it... I read a lot about it, but still don't understand... Can someone help me? *** Sent via Developersdex http://www.developersdex.com *** Don't just p...more >>

Basic SQL Server Question
Posted by engg_akyadav NO[at]SPAM yahoo.com at 10/5/2004 6:49:55 AM
After creating database in SQL Server , it generates .mdf , .ndf datafiles . Generally if we get those datafiles then we can create the database with tables/data on another machine by using those datafiles. I want to know, if we can we protect this? I don't want another user to take those fi...more >>

reporting on a DTS performance reporting
Posted by emebohw NO[at]SPAM netscape.net at 10/5/2004 6:12:18 AM
Hi all. I have a dts package called package1 that I run once a week that does some imports/queries against about the same amount of data each run. I am wondering (hoping!) if I can run a query that will show its performance over the past 6 months in terms of how long the execution for each run t...more >>

View Users
Posted by saadiqm2002 NO[at]SPAM yahoo.com at 10/5/2004 5:03:46 AM
Hi What is the sql commnad to view active user on sql sever databases Thanks...more >>

how to monitor for full table scans?
Posted by emebohw NO[at]SPAM netscape.net at 10/4/2004 5:10:20 PM
How-doody all. Is there an easy way to identify tables that are not properly indexed based on how often sessions are performing full table scans on it?...more >>

DBA Responsibility
Posted by N at 10/4/2004 2:48:27 PM
Is there anyone can tell me if the following statement is true? DBA are not experts on SQL. So they are not programmers and can't always answer programming questions. The example of programming questions that the DBA refers to is "What is the function in SQL that works like DECODE i...more >>

DECODE in SQL Server?"
Posted by N at 10/4/2004 2:38:12 PM
What is the function in SQL that works like DECODE in Oracle?" Thanks, N ...more >>

DTCXact transaction in DBCC openTran
Posted by Kalvin at 10/4/2004 2:09:34 PM
I keep seeing this return from running a DBCC OpenTran: Transaction information for database 'Live_App'. Oldest active transaction: SPID (server process ID) : 92 UID (user ID) : 1 Name : DTCXact LSN : (12837:1924:1) Start time : Oct 4 2004 8:5...more >>

Lookup value query joining two tables
Posted by gudia97 NO[at]SPAM yahoo.com at 10/4/2004 11:59:18 AM
Two tables: T1 (c1 int, TestVal numeric(18,2), ResultFactor numeric(18,2))--c1 is the primary key. T2 (x1 int, FromVal numeric(18,2), ToVal numeric(18,2), Factor numeric(18,2))--x1 is the primary key. T2 contains non-overlapping values. So for eg., a few rows in T2 may look like. 1, 51, ...more >>

urgent - data type problem
Posted by kieran5405 NO[at]SPAM hotmail.com at 10/4/2004 11:29:46 AM
Hi, I have a form which is submitting into a sql server db. i have one of the fields set to ntext which says length of 16. when i insert info, it only sumbits about a paragraph and when i pull this back using analyser it amounts to a byte count of 256 bytes. i thought you could submit page...more >>

Populating an Access combo box with large amount of data causes table lock in SQL Server
Posted by roy NO[at]SPAM padgett.net at 10/4/2004 10:46:33 AM
I have a combo box where users select the customer name and can either go to the customer's info or open a list of the customer's orders. The RowSource for the combo box was a simple pass-through query: SELECT DISTINCT [Customer ID], [Company Name], [contact name],City, Region FROM Customers O...more >>

Periodic maintenance like sp_delete_backuphistory?
Posted by bourgon NO[at]SPAM gmail.com at 10/4/2004 9:19:00 AM
I'd like to remove any cruft that's built up in the system over the last couple of years. Obviously there's old information no longer needed, I'm just not sure what is there. I've been cleaning up backup history in MSDB with sp_delete_backuphistory (leaving the last year's data) - what else i...more >>

SQL Server 2000 on AMD
Posted by bob.ward NO[at]SPAM enron.com at 10/4/2004 8:59:49 AM
I plan to buy a new computer configured with an AMD processor. Are there are any known problems running SQL Server with an AMD processor?...more >>

selecting the latest date from different columns
Posted by jsa1981 NO[at]SPAM hotmail.com at 10/4/2004 7:08:32 AM
I have 6 columns, all with dates within them, i.e. Proposed Start Date 1 Proposed Start Date 2 Proposed Start Date 3 Proposed Finish Date 1 Proposed Finish Date 2 Proposed Finish Date 3 What I need to do is narrow this down into two fields: Start Date Finish Date So I need to find th...more >>

Help Trigger
Posted by marie-christine.bechara NO[at]SPAM ifsal.com at 10/4/2004 6:21:50 AM
i want to audit transactions done to table TOrig. I created table TAudit same as TOrig in addition to ActionID (1 for insert, 2 for update, 3 for delete), System Date and System User. I created triggers on TOrigto insert into TAudit in case of insert, update & delete. TOrig contains text colu...more >>

URGENT database security question
Posted by praimnath.sankar NO[at]SPAM cogeco.com at 10/4/2004 5:56:36 AM
We have a requirement to secure the data in a new database so that no one can look at all of the data, including the SA / dbo. Should we give the VP the sa password and tell her how to change it so even the DBA can't access the data? Can we somehow stop SA/dbo from looking at say , a salary...more >>

Data model for a web messaging application.
Posted by itaitai2003 NO[at]SPAM yahoo.com at 10/3/2004 1:33:05 AM
I need to develop an internal messaging sub-system that is similar to a web mail application but without SMTP support (e.g message routes are confined to the webapp domain). The requirements are rather simple: Each user (e.g mailbox) can view incoming messages and his outgoing messages. Message ...more >>

transform recordset
Posted by Ezekiƫl at 10/2/2004 5:56:19 PM
Hi, I have table where i have the following fields in datasheetview: id | date | image | question1 | question2 | question..N I would like to have it in this way: id | date | image | questionnr | answer 1 01-01-2004 test.tif 1 1000 (this is the value of ...more >>

Update sql syntex question
Posted by rc NO[at]SPAM die NO[at]SPAM you NO[at]SPAM !spammers.sandworm.demon.co.uk at 10/2/2004 1:20:47 PM
Hi I am kind of new to sql, so here goes my question I have this sql update query update [CACI-table] set premeses=[xaa].[Sub Building] where (premeses is null) Waht is wrong with this. I have tow table called xaa and CACI-table and all I want to do is take one column from one t...more >>

Change local variable inside query
Posted by Otto Porter at 10/2/2004 12:20:48 PM
/*Given*/ CREATE TABLE [_T1sub] ( [PK] [int] IDENTITY (1, 1) NOT NULL , [FK] [int] NULL , [St] [char] (2) NULL , [Wt] [int] NULL , CONSTRAINT [PK__T1sub] PRIMARY KEY CLUSTERED ( [PK] ) ON [PRIMARY] ) ON [PRIMARY] GO INSERT INTO _T1sub (FK,St,Wt) VALUES (1,'id',10) I...more >>

Text column slows down select
Posted by narine.kostandyan NO[at]SPAM prurealty.com at 10/1/2004 3:14:49 PM
Hi All, We're running SQL Server 2000, SP3. I have a stored procedure that consists of a single Select statement. It selects a bunch of columns one of which is a column of data type TEXT. SP takes 30 sec to run which causes timeouts on the Front End. When I comment out the Text column fro...more >>

Average Computation Question
Posted by hfamili NO[at]SPAM yahoo.com at 10/1/2004 3:05:51 PM
My table is laid out as such: ID (int) What (varchar 20) TimeStamp (smalldatetime) ------- ------------- --------------- 73 Start <T1> 73 Misc <T2> 73 End <T3> 81 ...more >>

Mapping image pointers to page numbers
Posted by scott.yoder NO[at]SPAM ngc.com at 10/1/2004 2:22:13 PM
Is there a way to convert an image pointer to a page ID that could be used in DBCC page i.e. select TEXTPTR(document)FROM testdocs where id = 1 resturns 0xFEFF3601000000000800000003000000 select convert(int,TEXTPTR(document)) FROM testdocs where id =1 returns 50331648 dbcc page (9...more >>

Update Statistics failed, incorrect set options
Posted by stephencfoster NO[at]SPAM hotmail.com at 10/1/2004 12:39:24 PM
I have tried many variations (after reviewing other posts) and can not resolve the following issue: RUNNING SQL MAINTENANCE ---------------------------- SET ARITHABORT ON SET CONCAT_NULL_YIELDS_NULL ON SET QUOTED_IDENTIFIER ON SET ANSI_NULLS ON SET ANSI_PADDING ON SET ANSI_WARNINGS ON SE...more >>

Temp DB growing to max available disk space
Posted by sgoyal NO[at]SPAM agline.on.ca at 10/1/2004 11:10:06 AM
I've written a SP which does some complex calculations and in the end dumps data into 2 tables (master & detail) When I run this sp for smaller no of IDS (employees i.e for 13000 in Master and 60000 records in detail table) it takes around 3-4 hrs and if I run for all employees in the database (...more >>

Manual Log shipping
Posted by watuni2000 NO[at]SPAM yahoo.co.nz at 10/1/2004 10:07:05 AM
Interested in creating a manual standby database.Will like to implement this with Sql Server standard Edition available Any ideas or recommendations Thanks TY...more >>

SQL SERVER SMP configuration
Posted by araskas100 NO[at]SPAM yahoo.com at 10/1/2004 8:30:26 AM
If installing SQL Server 2000 ( Standard Edition or EE) on any of the Windows 2000 Server with multiple processor, do we have to to do any additions configuration to utilize SMP ?...more >>

invalid object like view, function etc.
Posted by francois.bourdages NO[at]SPAM harfan.com at 10/1/2004 8:22:15 AM
Hi is there a way to know if object (view, function, etc) are invalid ? let say a have a table t1 (field col1, col2) and a view v1 (field t1.col1, t1.col2) if I drop t1.col2, the view v1 is not working anymore. I want to know that information. In Oracle (8.1.7), i can query the all_object...more >>

Creating view (transpose records to columns)
Posted by sasrani NO[at]SPAM boathouse.com at 10/1/2004 6:09:37 AM
I have a table like the following Field1 Field2 Field3 ------ ------- ------ x1 y1 z1 x1 y2 z2 x1 y3 z3 x1 y4 z4 x2 y1 z5 x2 y2 z6 x2 ...more >>

Data Replication performance.
Posted by toby_one_canoby NO[at]SPAM hotmail.com at 10/1/2004 5:17:30 AM
I'm seearching for information regarding database replication performance. We need to compare the performance of replication for SQL Server and Oracle and it is urgent! Anyone who can describe the performance bottlenecks for each database when performing replication, or can point me to a white p...more >>

saving changes made to database
Posted by jsa1981 NO[at]SPAM hotmail.com at 10/1/2004 5:03:45 AM
I have an application that connects and edits a database's tables. My question is, what is the best way to save who did what changes to this database? I need to be able to display this in the application. The best way I have thought of so far is, to create a new table with 'user', 'date', 'tab...more >>

Book recommendation
Posted by William F. O'Neill at 10/1/2004 2:15:11 AM
Can someone please recommend a good book for SQL Server 2000 for a programmer(Powerbuilder), not a DBA. ...more >>

Transact SQL probklems with variable scope
Posted by morebyuk NO[at]SPAM yahoo.co.uk at 10/1/2004 12:26:09 AM
I have 24 tables named tblData1 ... tblData24 and I have a scheduled job that runs successfully to delete all data older than 31 days. My problem is that I need to keep at least one record in each table for the aggregate function max() to work in one of my application's functions, as if there ...more >>


DevelopmentNow Blog