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) > july 2005 > threads for july 1 - 7, 2005

Filter by week: 1 2 3 4 5

How to disable a warning message ?
Posted by joedsilva NO[at]SPAM gmail.com at 7/7/2005 10:30:32 PM
Hi, I have a few create table statements which create temporary tables that has row definitions which exceeds the 8060 size limit, this causes a warning message being generated (Message 1708). Is there a way I can disable/avoid the warning message from being printed ? Thanks, joe ...more >>


Removing system replication tables.
Posted by MariaGuzman at 7/7/2005 9:45:01 PM
Hi, i restored a backup from a database thas has replication configured. When i restored it the system tables that the merge replication creates are restored too. I was investigating on internet and I found that i can delete it using this query: sp_configure 'allow updates', 1 go reconfigure...more >>

Oracle Stored Procedures VERSUS SQL Server Stored Procedures
Posted by jrefactors NO[at]SPAM hotmail.com at 7/7/2005 8:38:52 PM
I want to know the differences between SQL Server 2000 stored procedures and oracle stored procedures? Do they have different syntax? The concept should be the same that the stored procedures execute in the database server with better performance? Please advise good references for Oracle store...more >>

Insert query takes lot of time
Posted by sjoshi at 7/7/2005 2:26:10 PM
Hello I have these tables: CREATE TABLE [dbo].[COREAttribute] ( [oid] [uniqueidentifier] NOT NULL , [CLSID] [uniqueidentifier] NOT NULL ) ON [PRIMARY] CREATE UNIQUE CLUSTERED INDEX [COREAttributeOidIndex] ON [dbo].[COREAttribute]([oid], [CLSID]) WITH FILLFACTOR = 90 ON [PRIMARY] ...more >>

difference between FOR INSERT and AFTER INSERT triggers
Posted by Ford Desperado at 7/7/2005 1:48:27 PM
I've been reading the docs and playing around, but I'm still not getting the difference. For instance, create table a(i int check(i>0)) create table a_src(i int) go create unique index ai on a(i) with IGNORE_DUP_KEY go insert into a_src values(1) insert into a_src values(1) insert into a...more >>

Select Top Alters Order
Posted by jw56578 NO[at]SPAM gmail.com at 7/7/2005 10:53:26 AM
If i have two identical queries, with exception of top criteria Select top 1 * from photos Select top 8 * from photos why does altering the top critieria alter the order of the returned results? ...more >>

create table from another table
Posted by Mark at 7/7/2005 9:19:06 AM
Hello, under MSSQL8 doing this "create table tblA as ( select Name from tblB );" results in error 156 (wrong syntax near AS keyword). What is my mistake? thanks and regards Mark ...more >>

Combining Stored Procedures
Posted by Noel at 7/7/2005 9:12:02 AM
I have two stored procedures ALTER PROCEDURE dbo.qryCountOne (@inputID int) AS SELECT COUNT(*) AS CountOne FROM dbo.TableOne WHERE (dbo.TableOne.value = @inputID) ALTER PROCEDURE dbo.qryCountTwo (@inputID int) AS SELECT COUNT(*) AS CountTwo FROM dbo.TableTwo WHERE (dbo.TableTwo.value ...more >>



Fulltext Search
Posted by Marc at 7/7/2005 8:58:20 AM
Apologies if this is not the correct place to put this. I wrote this query to perform a fulltext search on tblPages. SELECT * FROM tblPages, FREETEXTTABLE(tblPages, *,@searchTerm) searchTable WHERE [KEY] = tblPages.PageID ORDER BY RANK DESC Where PageID is the primary key. The synax is...more >>

Why nested views are not recommended?
Posted by Ford Desperado at 7/7/2005 8:34:36 AM
I'm reading a book 'Professional SQL Server 2000 Programming' by Robert Vieira there is a recommendation: "stay away from building views based on views" Why? What's so wrong with nested views? ...more >>

Subqurey returns more than one value error HELP....
Posted by meyvn77 NO[at]SPAM yahoo.com at 7/7/2005 7:31:16 AM
My update query updates about 50 columns and they all have the same format: (Im using ADP to interact with the SQL Server) UPDATE dbo.GIS_EVENTS_TEMP SET VEH1TYPE = (SELECT VEHICLETYPE FROM VEHICLE AS A WHERE(GIS_EVENTS_TEMP.CASEID = A.CRASHNUMBER) AND(A.UNITID = 1)), VEH2TYP...more >>

##temp table already exists problem
Posted by nigel NO[at]SPAM idsol.co.uk at 7/7/2005 1:27:22 AM
Hello I am using a temp table called ##temp in an SProc but often get the message that the table already exists. Could this be because the SProc is being run by more than 2 webpages at the same time? Or is it because the sProc has an error and is not getting to the drop table line? I have ...more >>

Problem with Hyphen in Full Text Catalog Search
Posted by Markus Weber at 7/7/2005 1:11:37 AM
Hi All, we have a problem with the Full Text Catalog Search. We use the following SQL Statement for matching companies from a table: select company, lastname, firstname, pkcustomers, fkcustomers, location, title, fkFunktionen, TypeOfPosition from customers where (fkcustomers =3D 0 or fkcus...more >>

Reading data from Navision to SQL Server: Date issues
Posted by hipo at 7/7/2005 12:46:49 AM
Hi: I'm trying to read data from Navision 2.60 ERP with own database to a SQL Server 2000 database via ODBC. All is working except just one thing, how to filter data with a date field. I have some big tables that have a date field and I just want to read data from one or few days, not all t...more >>

simple select problem
Posted by Mike R at 7/6/2005 5:41:50 PM
Hi, I cant figure out how to do this.... for example: Select name from mytab order by col1 could return Mike Dave Sue Simon Paul Fred I would like to show the row number, like in the grid in query analyser. so the orginal sort order is preserved i.e 1 Mike 2 Dave 3 Sue ...more >>

SharePoint Services Event ID 1007
Posted by \ at 7/6/2005 5:04:53 PM
The description is as follows... The necessary network binding may already be in use. The site has been deactivated. The data field contains the error number. If anyone can help I would greatly appreciate it. Thanks! Mendy...more >>

Audit Tables and triggers
Posted by Jeff Magouirk at 7/6/2005 2:00:59 PM
Dear Group, I would like to create an audit table that is created with a trigger that reflects all the changes(insert, update and delete) that occur in table. Say I have a table with Subject_ID, visit_number, dob, weight, height, User_name, inputdate The audit table would...more >>

Rollback issue
Posted by dave Beseke at 7/6/2005 1:21:02 PM
I have a C# application that creates a SqlConnection object with an ADO connection string and then sets up a SQlTransaction object for that connection. Several records are posted to different tables in the database within this transaction. All these tables uses an identity element as their pri...more >>

stored procs - specifying ORDER BY as a parameter
Posted by dave at 7/6/2005 10:54:51 AM
hi all, hope someone can help.... i'm having trouble calling an SP where the ORDER BY operator is specified as a parameter when the SP is called my SP is..... CREATE PROCEDURE dbo.sp_CustSearch (@SearchFor VARCHAR(80) , @SortOrder VARCHAR(50)) AS BEGIN SELECT first_name, last_name...more >>

>> Can Google web search index the data in my database?
Posted by gene.ellis NO[at]SPAM gmail.com at 7/6/2005 9:40:03 AM
I have content about projects that I store in a MS SQL database. People access this information through pages which are dynamically created in PHP. Since my content is stored in the database, how can I get google web search (at google.com) to included that content when it indexes my site? Is it ...more >>

Send alert from job
Posted by Stephanie at 7/6/2005 9:34:23 AM
I'm a newby and I have a quick question. I have set up this procedure to run as a job. I can create a block and have it populate the table, but I need to be alerted via email when the table is being populated. I do not know what step/s am I missing. Here is the scripts I ran: CREATE TABLE Blo...more >>

RenderStream fun!
Posted by Kulgan at 7/6/2005 8:23:14 AM
Hi Everyone I have a tricky problem with Reporting Services 2000. We can't use URLs to access reports for security reasons, so we have to use the web service. This means I have to write a viewer control (I can't wait for SQL 2005 either!). The problem I have is with rendering images. I can ...more >>

stored procedure question
Posted by wolfing1 NO[at]SPAM yahoo.com at 7/6/2005 7:43:07 AM
Hi. I'm creating a stored procedure that inserts a record if it's not already there, otherwise returns -1. It's like this... --- CREATE PROCEDURE createsession @username varchar(20) AS begin --Validate session not already there select 1 from a..Sessioninfo where username = @username if @...more >>

Diff between "LEFT OUTER JOIN" and " *= " when condition
Posted by Dam at 7/6/2005 3:17:57 AM
Using SqlServer : Query 1 : SELECT def.lID as IdDefinition, TDC_AUneValeur.VALEURDERETOUR as ValeurDeRetour FROM serveur.Data_tblDEFINITIONTABLEDECODES def, serveur.Data_tblTABLEDECODEAUNEVALEUR TDC_AUneValeur where def.TYPEDETABLEDECODES = 4 and TDC_AUneValeur.PERIODE_ANNEEFISCALE_ID =...more >>

Can I use osql to known the database install on a server via 'guest' ?
Posted by Florimond at 7/6/2005 2:12:29 AM
Can I use osql to known the database install on a server via 'guest' account ? I had over 300 servers with sql server all around France (different version : 6.5, 7 and 8) I need to check all database on each servers from my place. Of course, also it would have been to easy, I don't have all '...more >>

Client EM produce OS "failed login errors"
Posted by New MSSQL DBA at 7/6/2005 12:36:16 AM
hi all, have anyone else met with the following problem. we've got a SQL2000SP3a on a 2 active-active node clusters of W2K3, this cluster in using AD. I've found that whenever I use Enterprise Manager on my local computer to register the above instance, it will constantly produce "Failed lo...more >>

Trying to understand triggers
Posted by JA at 7/5/2005 10:01:01 PM
Hi, Newbie here. I have a mailing list program that I really like. I also have a new membership program. The membership program has mailing list signups built-in, but it isn't nearly as robust as the stand-alone mail program. If someone signs up for a newsletter when they register (members...more >>

User defined data type used in stored procedure parameters
Posted by dawatson833 NO[at]SPAM hotmail.com at 7/5/2005 7:39:07 PM
I have several stored procedures with parameters that are defined with user defined data types. The time it takes to run the procedures can take 10 - 50 seconds depending on the procedure. If I change the parameter data types to the actual data type such as varchar(10), etc., the stored procedu...more >>

Service fails to start
Posted by William F. O'Neill at 7/5/2005 7:32:15 PM
Am using SQL Server2000 on WINXP. Have been using this DB since it became available. Today, all of a suddent, the Service was not 'started,' even tho I had it marked as 'automatic.' Tried to manually start the service, and received the message that some service start and stop if there is no...more >>

For XML clause
Posted by jhoge123 NO[at]SPAM yahoo.com at 7/5/2005 4:45:48 PM
I'm trying to turn a product table into an XML file to create an heirarchical menu, and I was wondering if there was any easy way to do this. The table is (simplified) below: Create table product( category varchar, subcategory varchar, name varchar) and I want the XML to represent the ...more >>

Explicitly fail a SQL Server Job in SQL Server 2000
Posted by Justin at 7/5/2005 3:45:06 PM
I have a SQL Server job, which runs mutiple steps. One of the steps (step 3) looks for a record in the database. How can I explicitly fail the SQL server job if the database record does not exist? ...more >>

Updating a large table: set @@rowcount versus explicit transactions
Posted by louis at 7/5/2005 2:41:45 PM
When I need to perform an update against multi-million row table I typically specify @@rowcount, to reduce locks. e.g. set @@rowcount 1000 while exists (select * from myTable where col2 is null) update myTable set col2 = col1 + 'blahblah' where col2 is null However, my boss' sc...more >>

Using CASE or IF with INSERT
Posted by CSDunn at 7/5/2005 2:11:07 PM
Hello, Within an INSERT statement where the VALUES are expressed, is it possible to evaluate one or more of the values with CASE or IF statements? Consider the following code; INSERT INTO snbat011_app_clnt (entr_cd, app_id, clnt_id, clnt_type, clnt_frst_n...more >>

?HLEP..Sql Server UPDATE INNER JOIN QUERY ?????..
Posted by meyvn77 NO[at]SPAM yahoo.com at 7/5/2005 10:56:12 AM
Im using an ADP to connect to a SQL Sqever DB. In access it was really easy to say Inner join on table1 and table2 and update columnA from table1 with columnC from table2 where table1.key = table2.key and table2 columnB = 1 and table2 columnD = 4 I have tried all manner of beasts to get ...more >>

Can SQLServer produce Excel Spreadsheet output ?
Posted by cpeters5 NO[at]SPAM gmail.com at 7/5/2005 9:25:08 AM
Deaa group, I am using SQLServer 2000 in an XP Sp2. I would like to do the following: I have a program running on a database server that generates some data which are loaded to the database. This program is used in a web application, invoked by some java program and JSP scripts. (I am f...more >>

Connect to SQL Server dialog
Posted by polinaskulski NO[at]SPAM aol.com at 7/5/2005 7:03:27 AM
Hi, Is it possible to avoid the last used server being in Query Analyzer 'Connect to SQL Server' dialog by default(when I click on File/Connect in Query Analyzer) - I don't want to apply 'truncate table' scripts to a production server by mistake! Thanks ...more >>

DTS Job - Suspend on fail?
Posted by throat.wobbler.mangrove NO[at]SPAM gmail.com at 7/5/2005 1:53:53 AM
Hi, Is it possible to somehow set a SQL Server DTS job to automatically disable itself, when it encounters a fail, so that future scheduled occurrences don't happen until the problem has been fixed? I've hunted about for this on the web, but drawn a blank unfortunately! Many thanks if any...more >>

tempdb log full error with plenty of disk space available
Posted by New MSSQL DBA at 7/4/2005 8:01:23 PM
has anyone met with this before? the setting is SQL2K with SP3 on a 2 node active-active W2K3 cluster. on one of the machine, it occasionally prompts for the following error: "The log file for database "tempdb" is full. Back up the transaction log for the database to free up some log space."...more >>

Unique number/sequence
Posted by pluton at 7/4/2005 10:40:10 AM
Hallo, Hot to get unique, sequential number during execution of stored procedure ? I can create table with autoincrement column, add record, get ident_current and delete record each time i need the number. However its not elegant i guess. best regards pluton ...more >>

Performance Issues - Access 2000 Frontend SQL Server 2000 Backend
Posted by Michael at 7/4/2005 2:03:58 AM
Hi, Simple question: A customer has an application using Access 2000 frontend and SQL Server 2000 backend. Data connection is over ODBC. There are almost 250 concurrent users and is growing. Have they squeezed everything out of Access? Should the move to a VB.Net frontend taken place ages ago...more >>

Last Date Stored Proc Updated???
Posted by John NO[at]SPAM ViridianTech.com at 7/4/2005 1:24:52 AM
Is there such a date/time? I see the Created date on the list of stored procs, but really want a Date Last Updated. After changing code for 3 hours, I tend to forget which procs I've worked on, and which need to be move to production. any simple way to keep track of the last procs played with...more >>

SQL Installation Problem
Posted by CW1973 at 7/3/2005 11:29:16 PM
When I try to use Autorun I get an error message that says "A previous program installation created pending file operations on the installation machine. You must restart the computer before running setup." I have restarted the computer many times, but I have continued to get the same message. ...more >>

Get rows with duplicate values in certain columns
Posted by agekay NO[at]SPAM gmx.de at 7/3/2005 5:13:27 AM
Hi there, I would like to know how to get rows with duplicate values in certain columns. Let's say I have a table called "Songs" with the following columns: artist album title genre track Now I would like to show the duplicate songs to the user. I consider songs that have the same ar...more >>

Backup on network!
Posted by debian mojo at 7/2/2005 1:37:11 PM
hello group, a few days ago i used the following backup statement and everthing worked fine: sp_addumpdevice 'disk','pipedump','\\192.x.x.x\L\Data\test.bak' Backup database Test to pipedump The same statement is not working today!!!!! What's the reason? Please dont tell...more >>

cascaded select
Posted by Mark at 7/2/2005 10:55:57 AM
Hello, how to do a select ... from select in MSSQL similar to Oracle? eg. select hour from ( select substring( daily, 9,2 ) as hour from daytab where userid = 12 ) results in "incorrect syntax near ')'" thank you and regards Mark ...more >>

Script to stop a SQL service
Posted by Paul O. Morris at 7/2/2005 10:20:30 AM
Is there a script that I can run to stop a particular SQL server service on Win2003 server? I'm looking for a similar script to restart that service as well. Thanks. ...more >>

Need Query to Select VarChar Rows that can convert to Integer
Posted by Anton at 7/2/2005 1:21:47 AM
I have a table of zip codes, some with Canadian zips. I'd like to take a zip code and search for nearby zips. For example: Dim theZip As Integer = textbox1.text ....Parameter.Add(@ziplow, SqlDbType.Int, 5).Value = (theZip - 10) ....Parameter.Add(@ziphigh, SqlDbType.Int, 5).Value = (theZip ...more >>

Deletion of Duplicate Row
Posted by Richard at 7/2/2005 12:10:03 AM
Hi Everyone, I have a table in which their is record which is exactly same. I want to delete all the duplicate keeping ony 1 record in a table. Example Table A Empid currentmonth Previousmonth Supplimentarydays basic 158 2001-11-25 00:00:00.000 2001-10-01 00:00:00....more >>

Problem with SQLFreeStmt
Posted by Sandy at 7/1/2005 12:52:16 PM
Hi, I have some C++ code which does the following retcode = SQLFreeStmt(hStmt,SQL_UNBIND); retcode = SQLFreeStmt(hStmt,SQL_RESET_PA­RAMS); retcode = SQLFreeStmt(hStmt,SQL_CLOSE); But sometimes it cores in the third statement. I tried using "SQLCloseCursor (hStmt)" in its place but ...more >>

sql trouble
Posted by bob NO[at]SPAM coolgroups.com at 7/1/2005 12:47:02 PM
Could someone help me get the following SQL statement working? SELECT standardgame.gamename, standardgame.rowteamname, standardgame.colteamname, standardgame.dollarvalue, standardgame.gameid, standardgame.cutoffdatetime, standardgame.gametype, standardgame.gameowner, (100-COUNT(purchased...more >>

how truncate scientific notation from Real?
Posted by mo at 7/1/2005 10:32:09 AM
Hi We've got some numbers stored as Reals which are returning values in scientific notation that we need rounded down to 3 digits to the right of the decimal. ie 8.7499999E-2 needs to return 8.75. Round, cast, convert, formatnumber in the dts package all fail. Help! Thanks Moe ...more >>

Related tables
Posted by newtophp2000 NO[at]SPAM yahoo.com at 7/1/2005 9:36:21 AM
Is it possible to retrieve all tables that a given one is related to via foreign keys? ...more >>

Insert Records From Table1 that do no exist in Table2
Posted by csgraham74 NO[at]SPAM hotmail.com at 7/1/2005 9:36:07 AM
Hi guys, i have a little problem here. im attempting to write a stored procedure that compares two tables of the same data structure and adds (inserts) extra records that exist in table1 to table2. My problem is that i dont have a unique identifier between the tables. i think someone ...more >>

Can SQL tools be installed from server install?
Posted by Eric Bragas at 7/1/2005 8:11:33 AM
Good day, Can SQL Server tools (QA, EM) can be installed on a client machine from a full SQL Server installation on a server? I can't find the CD. Thanks for your time. Eric ...more >>

DBCC DBREINDEX not working
Posted by jon_brookins NO[at]SPAM yahoo.com at 7/1/2005 7:00:00 AM
I have a stored proc that identifies indexes that need to be defragmented ( LogicalFragmentation > 20% ) using DBCC SHOWCONTIG. This works fine and shows me all of the candidate indexes to be defragged. I am using DBCC DBREINDEX to rebuild the indexes. What I noticed yesterday is that it seems...more >>

Why is it called Stored Procedure instead of Stored Sets?
Posted by NickName at 7/1/2005 6:54:09 AM
Since RDMBS and its language SQL is set-based would it make more sense to call a given stored process "Stored Sets" instead of current theorically misleading Stored Procedure, as a measure to prod programmers to think along the line of sets instead of procedure? ...more >>

MSDE and SQL2000 on Win2k3
Posted by gdavid9 NO[at]SPAM hotmail.com at 7/1/2005 3:21:06 AM
Hi all, I have MSDE installed on an HP server as some of the utilities required a database. I have also subsequently installed SQL 2000 onto this server which is a windows 2003 box. I know it complains at the start of the installation but I was under the impression that it would still work ...more >>

Restoration From Network Drive
Posted by Tommy.Vincent NO[at]SPAM gmail.com at 7/1/2005 1:06:23 AM
Hi, When i use to work on Windows 2000 advance server and Sql 2000 I was able to do network restoration by using a mapped drive where my backup use to be lying.What i did was I assigned administrator rights to my login and in Services (mssqlserver)i added my login. Then I was able to access a...more >>

T-SQL create self-reference in depending table
Posted by Wolfgang Kreuzer at 7/1/2005 12:00:00 AM
Hello all, I have two tables - Projects and ProjectStruct Table Projects contains master records of the projects, ProjectStruct allows to define a project herarchie and contains the fields PrjStructId, ProjectId, PrjStructName, ..., ParentId PrjStructParent contains a reference to the paren...more >>

Why is sp_helpdb and sysdatabases different
Posted by Akinja at 7/1/2005 12:00:00 AM
I have a strange question and hope someone can shed some light on the problem. First let me give you my scenario. We are using doubletake to replicate our database server files between the local site and off site. I will name these servers srv1a (local) and srv1b (remote). It now time to...more >>


DevelopmentNow Blog