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) > january 2006 > threads for january 22 - 28, 2006

Filter by week: 1 2 3 4 5

Example of binary data type in SQL Server
Posted by Water Cooler v2 at 1/28/2006 4:13:21 PM
There are two datatypes for storing binary data type in the SQL Server: 1. binary - for fixed length binary data 2. varbinary - for variable length data My question is: how is data inserted into them? Do they have any delimiters that go into the insert statement like strings and datetimes h...more >>


How to find first not null value in column
Posted by Martin R at 1/28/2006 3:12:08 PM
Hi, How to find first not null value in column whitout chacking whole table (if there is a not null value then show me it and stop searching, the table is quite big)? thx, Martin *** Sent via Developersdex http://www.developersdex.com ***...more >>

SQL Server client tools
Posted by Elham Ghoddousi at 1/28/2006 11:18:41 AM
Hi How network administartor can find , who has AQL server client tools on his system? Thanks ...more >>

What is the right datatype to store Hours up to the minute precision?
Posted by serge at 1/27/2006 8:10:15 PM
Right now the database I am working with is storing time in an Integer data type and is storing the time value in seconds. The application does not allow entering seconds. It accepts minutes and hours. I have a report where it is doing: SELECT SUM(TIMEENTERED) and the SUM is *blowing* up...more >>

Data Connections for SQL Server Express in Visual Studio Express
Posted by Crazy Cat at 1/27/2006 10:31:20 AM
I have an Excel add-in that connects to a SQL Server Express 2005 database. I've decided to create a configuration piece for this add-in in Visual Studio 2005 Express. I added a data connection using the data connection wizard and all appeared to go well. Anyways when I attempt to open SQL Serve...more >>

MS Access Frontend for remote sql server
Posted by aspsql at 1/27/2006 9:42:59 AM
I have a website which runs off a Access database which I am currently converting to sql server database. I would like to still use my access front end for reporting and queries.. I created an odbc connection on my computer to the remote sql server and created a link in access to my sql server t...more >>

SQL Server 2000 Audit for login
Posted by Jacand4321 at 1/27/2006 8:37:18 AM
Is there a way to audit the login on SQL Server 2000? I'm looking for a way to get a report login/logout events with the name of the database. Thanks in advance. ...more >>

Database instance
Posted by GTi at 1/27/2006 8:21:46 AM
In MS SQL you can create a database that is run in a seperate instance. Why and when should a database run on a seperate instance ? Benefits ? What is prefered and why? Two applications have it's own tables. Appplication A have a set of tables. Appplication B have a set of tables but also ...more >>



Views vs Stored Procedures, whats the difference?
Posted by mooreit at 1/27/2006 6:19:03 AM
The purpose for my questions is accessing these technologies from applications. I develop both applications and databases. Working with Microsoft C#.NET and Microsoft SQL Server 2000 Production and 2005 Test Environments. What is the purpose of a view if I can just copy the vode from a view a...more >>

New bie
Posted by ehabaziz2001 NO[at]SPAM gmail.com at 1/27/2006 3:39:34 AM
Pls advice me of a small download compiler SQL that I can test my program and exmples in it (select,insert,drop,...) ...more >>

Formula Parsing
Posted by Mike at 1/26/2006 8:06:35 AM
Hi, I have three tables in the following structure (simplified): Table 1: Containing the customers ------------------------------------------------- create table Customers ( [cusID] int identity(1, 1) not null, [cusName] varchar(25) not null ) Table 2: Containing the customer data f...more >>

Query out an xml element from a field containing xml data
Posted by Ranjith at 1/26/2006 6:43:08 AM
'message' Field Data: <xml> .... <test>ABC</test> .... </xml> How do I query out 'ABC' from this xml field data in a SQL Server? Assume message field is in table 'Persons' ...more >>

Problem Building Script with Int
Posted by Mossy at 1/26/2006 3:42:50 AM
I am currently moving a table from a msSQL DB to a MySQL DB. I am trying to build the bones of an insert statement by adding strings to a select statement. SELECT '(' + job_referenceno + ', ''' + job_title + ''', ''' + job_category + ''', ''' + job_type + ''', ''' + job_location + ''', ''' ...more >>

Truncate table if exists
Posted by rdraider at 1/25/2006 11:41:47 PM
Hi, I am trying to create a script that deletes transaction tables and leaves master data like customer, vendors, inventory items, etc. How can I use TRUNCATE TABLE with an Exists? My problem is I have 200+ tables, if I simply use a list like: truncate table01 truncate table02 truncate t...more >>

Insert/Update with dynamic database name
Posted by amfi1 at 1/25/2006 9:41:23 PM
Hi My problem is as follows: I need to transmit data between two databases on the same server, but I have to use dynamic database names (they must be configurable). For example I need to achive sth like that: insert into [database1].[dbo].[table1] (select columns from [table2]) when...more >>

select cast help needed
Posted by T.M. at 1/25/2006 8:39:45 PM
What is the correct syntax for querying the first 20 characters of a memo field? I'm trying to SELECT CAST (varchar(20) fieldname) as newfieldname and i get a bunch of errors Can someone please help me? MS Access DB used with ColdFusion Thanks...more >>

Scalability questions for extended stored procedure
Posted by ppateel at 1/25/2006 2:01:39 PM
Hi, First I would like to apologize for cross posting in three groups as I did not know which one would be the appropriate group. If some one points me to the correct one I will use that in the future. I am trying to findout the scalabilty of an user written extended store procedure. I have...more >>

Can i debug/watch on the trigger's INSERTED and DELETED records/values?
Posted by serge at 1/25/2006 1:29:59 PM
When i debug a trigger is it possible to add a WATCH on the INSERTED or DELETED? I think not, at least I couldn't figure out a way to do so. Does someone have a suggestion on how I can see the values? I did try to do something like INSERT INTO TABLE1(NAME) SELECT NAME FROM INSERTED bu...more >>

ASC Result Set with Nulls at the bottom
Posted by ActiveX at 1/25/2006 12:22:36 PM
I have a results set that is sorted on LineNum. Not all items have a LineNum (some are null). I want my result set to return all items in ASC LineNum order and then list all items with NULL LineNum at the end of the results. Any Suggestions? Thanks. ...more >>

Conditional execution of DTS package task
Posted by Scouser at 1/25/2006 10:24:39 AM
I've searched everywhere for this but can't find the answer I want to run a DTS package that simply executes a SQL statement to get a count of rows in a table, if the resulting number is greater than zero I want to execute another step in the same package, else just quit. I don't to pass gl...more >>

Help creating a SELECT statement for "today"
Posted by Chris at 1/25/2006 10:03:53 AM
Hello, I am attempting to build a MS SQL query that will return data from "today"; today being current day 8:00AM-10:00PM today. My goal is to return the data from a table that is written to throughout the day, the query will provide the current grade of service in our call center. I am ha...more >>

SQL Server does not exist or access denied
Posted by kwdavids at 1/25/2006 8:06:12 AM
I'm getting occasional instances of the error: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied I get the error both in application code and from Enterprise Manager. The database is LOCAL. Microsoft SQL Server 2000 Developer Edition SP4 Windows XP Profess...more >>

SQL Server does not exist or access denied
Posted by kwdavids at 1/25/2006 7:59:45 AM
I'm getting occasional instances of the error: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied I get the error both in application code and from Enterprise Manager. The database is LOCAL. Microsoft SQL Server 2000 Developer Edition SP4 Windows XP Profess...more >>

Difficult SQL Statment
Posted by lvpaul NO[at]SPAM gmx.net at 1/25/2006 7:50:57 AM
Hello ! I habe 2 Tables Table1: Orders Fields: Ordernr, Opieces Table2: Calloffs Ordernr, Cpieces In Table1 ordernr is primary key. In Table2 the same ordernr can exist often My problem If the sum(Cpieces) < Opieces: I have to create a new virtual calloff with Cpieces = opieces ...more >>

Question on SQL Server 2000 - 2005
Posted by datapro01 NO[at]SPAM yahoo.com at 1/25/2006 6:20:01 AM
I am a DB2 DBA that has been asked to become familiar enough with SQL Server in order to become actively involved in its installation, implementation, and to review database backup/recovery procedures. SQL Server will be used by a vendor packaged application. The problem is that we are awaitin...more >>

configuration/load balancing
Posted by Mike Read at 1/25/2006 12:00:00 AM
Hi On our SQl Server (2000) we can have queries that take at least 10-20mins (require full table scan fo billion row table). When one of these queries is running it substantailly slows down very quick queries (sub second queries take several seconds). I believe there is no way to set priori...more >>

Outer Join problem
Posted by Max at 1/24/2006 8:13:49 PM
I know this is not an Access group, but there doesn't seem to be one, and I'm guessing MS SQLs are all quite similar - at least in relatively simple cases like this one. I'm using this SQL statement, "SELECT [Cape Town 25/04].IDNUMBER, [Cape Town 25/04].SURNAME, [Cap...more >>

Trigger?
Posted by Bethany Holliday at 1/24/2006 6:14:04 PM
Hi All, I have been working with SQL Server for some time - but until now haven't tried to implement a trigger and am not sure if this is an appropriate use. Any advice would be greatly appreciated. I have this table: almis.dbo.aadata_x when almis.dbo.aadata_x is updated, I want to au...more >>

ORDER BY in VIEW not working
Posted by Beowulf at 1/24/2006 4:19:30 PM
I have the view below and if I use vwRouteReference as the rowsource for a combo box in an MS Access form or run "SELECT * FROM vwRouteReference" in SQL Query Analyzer, the rows don't come through sorted by Numb. Everything I've read on the web suggests that including the TOP directive shou...more >>

Joining tables in different databases
Posted by Captain Nemo at 1/24/2006 1:58:26 PM
Hi I'm working on an ASP project where the clients want to be able to effectively perform SELECT queries joining tables from two different databases (located on the same SQL-Server). Does this involve creating virtual tables that link to another database, or am I completely on the wrong tra...more >>

Importing from Oracle 10g
Posted by db55 at 1/24/2006 1:54:03 PM
I am trying to import 6M records in a table from an Oracle 10g database into a SQL Server 2000 database. After importing 1.5M+ records I get the following error: Ora-01555: snapshot too old: rollback segment number 129 with name "_SYSSMU129$" too small How can I speed up the import proces...more >>

Ignore Some Errors
Posted by Ford Desperado at 1/24/2006 11:35:45 AM
In my stored procedure I'm calling a buggy and flaky stored procedure that comes from a third party. When I run my stored proceure from QA, I'm getting a whole buch of errors raised inside the third party one. Is there any way I could just ignore them, so that if I run my SP from QA, only errors...more >>

Commit Transaction Gets Deleted - Unable to save SP
Posted by Ryan at 1/24/2006 6:36:42 AM
I've re-written a stored procedure and when I post the following code into the existing SP in EM, is saves OK. However, when I re-edit the SP, the last line 'Commit Transaction' has been removed. I cannot save the remainder of the SP as it throws error 208 (Invalid Object name #Max) about two ...more >>

SQL Server could not configure 'Server\Instance' as a Distributor.
Posted by Michael Swinarski at 1/23/2006 10:34:11 AM
I am working on setting up our new SQL Server 2005 servers. One of them will eventually be our Replication Distributor. However when I attempt to set this up within the wizard, I get the following error: ------------------------------ TITLE: New Publication Wizard ------------------------...more >>

SQL2K5 Database Engine Tuning Advisor
Posted by Jean-Marc Blaise at 1/23/2006 8:03:21 AM
Hi, I find much regrettable that Database Engine Tuning Advisor be not part of MS-Express Edition ... A server without such help is not a server. Besides, you've got the tutorials, but not the tool to play with :-((( Regards, JM Blaise ...more >>

Default value: ISNULL()
Posted by Peter Neumaier at 1/23/2006 2:56:00 AM
Hi! I'm wondering whether it's possible to set up the MS SQL function ISNULL() as a default value to avoid NULL entries when importing data into a table?! For example, I want the column1, to have a 0 (zero) as default value, when entering/importing data: isnull("column1",0) I remember th...more >>

Linked Server to SQL-Server Question
Posted by tim.pascoe NO[at]SPAM cciw.ca at 1/22/2006 1:21:43 PM
I've been trying to work with Linked Servers for the first time, with mixed success. My problem right now is in trying to write a View using a linked server. The linked server is another SQL-Server, and it was set up using the 'Enterprise Manager' interface. When the server was created, the name...more >>

Connections to SQL server are slow on one machine
Posted by foreman_bob at 1/22/2006 6:42:14 AM
Hi all, My client PC is very slow to connect to all SQL server databases. Other client machines are having no problem at all. I even tried connecting to my local MSDE database, and the same behavior results. If I try to connect via a .NET application it is also slow. The connection is always...more >>


DevelopmentNow Blog