Archived Months
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


all groups > sql server new users > july 2006

Filter by week: 1 2 3 4 5

Computed Value
Posted by Bryan Hughes at 7/31/2006 10:01:40 AM
Hello, I need to create a AK from two columns in a table. Both columns are int types and I need the new AK column to look like P0000-0000 how do I do this? Bryan ...more >>

Problems with a website...is it sql
Posted by Jesse Kangas-Hanes at 7/30/2006 4:57:10 PM
I am trying to create a database website for a company that I work for. When i do the database editor I can connect to the sql server and my submission form works but if I try to edit data I get this error on the web page... Database Results Wizard Error Description: Incorrect syntax near ...more >>

Two instances - authentication question
Posted by mcron at 7/28/2006 1:48:02 PM
I have an existing installation of SQL Server 2000 configured for Windows authentication. I have a new application that requires SQL Server and Windows authentication. If I install SQL Server 2000 on this server again, am I creating another "instance"? Is the authentication method specific ...more >>

Howto remove decimals in a numeric field
Posted by Ana_T at 7/28/2006 12:00:00 AM
Hi, I use a numeric field (vs. nvarchar) to log the KM of a vehicle because I'd like the data to be displayed with the 1000 separator (123.456). In a web page, the data is displayed with decimals (123.456,00). I removed the decimal setting in the server's regional configuration with no avai...more >>

how to move a bak file to another machine?
Posted by CRT## at 7/27/2006 9:51:29 PM
I want to move a copy of a database (bak file) to my local machine so I can have access to the data offline. My goal can be thought of as copying a database, data and structures, to my local machine. How do I do that? Do I restore it? When I try to restore it using Enterprise Manager, I see...more >>

How do I print off a Relationship View of my tables?????
Posted by rhaazy at 7/27/2006 11:13:34 AM
Can I print off something that has all my tables and their column names along with all the relationships between them???/ ...more >>

sending emails with sql server
Posted by Sam at 7/27/2006 12:00:00 AM
how can i automate sending emails from sql server? can it be sent with attachments? thanks ...more >>

Database Size
Posted by Microsoft at 7/26/2006 4:20:21 PM
I have a 20GB database and i recently delete a 2GB table from it, but still it shows as 20GB database. I have done a backup on both transaction log and ..data file but it didn't help. any idea how can i free up that 2GB space? Thanks Hooman ...more >>



Finding Database Object Permissions Under A Role
Posted by G. Ray Giacalone at 7/26/2006 11:22:13 AM
Is there any way of finding all of the database objects and their permission settings that are assigned to a role in SQL 2005? This was available in SQL 2000's interface :-(] THANK YOU VERY MUCH!!! :-[) ...more >>

Startup of SQL Server and Sql Agent Service Account|Suspect Database
Posted by Bill Papanestor at 7/26/2006 9:00:17 AM
I am trying to setup a domain user to that will be used to start-up the SQL server and agent services. I am on a 2003 domain using SQL 2000 SP 4 The domain user is not part of the local administrators group where the SQL Server is loacted but I have assigned the local policy privileges as ...more >>

Getting rid of leading 0s in strings
Posted by Orlando Acevedo at 7/25/2006 12:07:46 PM
I am trying to use several tables that have one 10-character text field in common. Most of the records have a numeric expression, but some tables have leading 0's, and some don't. I can't cast the field to numbers because there are some records that have letters also. What function can I us...more >>

Device not ready--what does that mean?
Posted by Middletree at 7/25/2006 9:27:31 AM
Been struggling with this for way too many hours. I am trying to get a database copied from one location to another. The place it's coming from is SQL Server 2000. The destination is SQL 2005. They are not on the same network and I cannot connect them to do an import. First, I tried detachi...more >>

easy one here >> Query help, please
Posted by WANNABE at 7/24/2006 11:15:32 AM
Need to change part of a field, and I 've been running some tests in pubs. This gives me and error> update authors set substring(phone,5,3) = '888' where substring(phone,5,3) = '826' this is the error > update authors set (substring(phone,5,3)) = '888' -----------------------------...more >>

Import/Export issue
Posted by mita at 7/23/2006 8:16:01 PM
Hi guys I am trying to import a text file into sql server but sql doesnt let me do that. My flat file is in the txt format. Here is a part of my txt file Indicatorid,IndicatorName,Reportingquarter,SourceDate,DHB,DHBName,PHO,PHOName,Practice,PracticeName,Practitioner,PractitionerName,NHI,DOB,...more >>

How to use local format file to bcp local data to remote server
Posted by JohnsunKan at 7/23/2006 12:00:00 AM
How to use local format file to bcp local data to remote server? If I use a local fmt file then system reponse "could not find the driver". If I use DTS to bcp to a remote server, I only can find the remote server's driver... Is it possible to use bcp (local data & fmt file) like that ...more >>

SQL DB Error Newbie
Posted by Thomas Grassi at 7/22/2006 9:58:34 AM
I got this error the other day any ideas? Event Type: Error Event Source: VSS Event Category: None Event ID: 6004 Date: 7/19/2006 Time: 8:47:58 AM User: N/A Computer: TGKW001 Description: Sqllib error: Database WrestlingHistory is not simple. For more information, see Help and Supp...more >>

global search and replace in SQL database data type ntext
Posted by msnews.microsoft.com at 7/21/2006 4:33:04 PM
Hello, I want to do a global search and replace in my SQL database where the data type could also be "ntext". I did find the code which works for (char, vachar, nchar, nvachar) Thank you for your help regards ...more >>

PLEASE TELL ME
Posted by WANNABE at 7/21/2006 10:15:16 AM
Is there any need for SQL standard Logins, other then for non-MS systems like Unix to be able to connect?? Shouldn't all users (who are all using WINXP systems) be able to do what they need to through Windows Auth? Please help me out here I just want to be sure, and hear any other ideas, I...more >>

problem attaching 2000 db to 2005
Posted by Middletree at 7/21/2006 9:00:20 AM
I have done this before with no problem, so I don't understand why I can't do it now. I have a SQL 2000 database, which I want to copy over to another machine. It happens to have 2005. I understand that I can't detach and attach a 2005 database to 2000, but I should be able to go from 2000 ...more >>

Stopping SQL Service
Posted by skipScout at 7/21/2006 8:12:14 AM
Hi folks, I'm new to SQL Server 2000, obviously, and I need help with the following task: I have a server with 2 instances running. I need to stop all access to one of these instances until further notice. I have tried stopping the service, but I notice that it keeps restarting. I test...more >>

Stored procedure help
Posted by mita at 7/20/2006 8:57:01 PM
Hi guys I am trying to learn how to use stored procedures..I am quiete familiar with sql server 2005 but i have never used stored procedures. We have been asked to run some validation checks on some data provided by our clients. Could you give me a bit of a direction as to how should i learn S...more >>

Query help needed
Posted by msnews.microsoft.com at 7/19/2006 3:34:16 PM
Why does this query not work> I am trying to compare fields in 2 tables and Show me only the results of fields that are different, I thought this would work, but ... well, select o.name from DBNAME.dbo.sysobjects o, DBNAME2.dbo.sysobjects n where o.name != n.name ...more >>

Copying tables from one DB to anotherq
Posted by darrel at 7/19/2006 9:50:33 AM
I need to migrate some data from one DB on one DB server to another DB on another DB server. Can that be done from a SQL query or is this more involved due to the tables existing on separate physical servers? -Darrel ...more >>

Loading an MSSQL database
Posted by Milagro at 7/19/2006 12:00:00 AM
Hi, I'm new to MS SQL server databases. My experience is in MySql/Perl/Linux. In MySQL loading data into the database from a file is done by using the LOAD DATA INFILE command from the mysql command line client. How do I go about loading data into a MS SQL Server 2005 database via a file? ...more >>

What is the best way to diconnect users?
Posted by msnews.microsoft.com at 7/18/2006 4:54:49 PM
I am about to run an application update on an application that uses SQL databases, and would like to ensure that there are no users in the database? I thought from what I've read that it might be best to stop the SQL service, and restart in single user mode. There are only 2 applications that...more >>

database xfer
Posted by Dean at 7/18/2006 1:50:03 PM
Hello, I have a sql database whose tables/content I would like to import into a new database. Unfortunately, not all the fields match up, some are named differently and some don't exist in the new database at all. How is this best done? Is there a tool out there(preferably free) that wil...more >>

View with parameter?
Posted by MarcVS at 7/17/2006 3:01:49 PM
I'm trying to make a view in SQL Server 2005 with a parameter (WHERE ID = @param) I open the view, and put the = @param in the Filter column. I get an error: 'Parameters' cannot be used in this query type When I click OK, SQL server leaves the statement in the column and puts 'WHERE (dbo.P...more >>

How to convert code
Posted by SAC at 7/17/2006 9:12:32 AM
I previously posted this in the integration Services but it might be better here. I have sql server 2005 and I'm very new to sql server. Currently, I have some code in MS Access that uses two tables on a sql server db through an odbc connection. It loops through the records of a table tha...more >>

Quick Questions
Posted by Thanas at 7/17/2006 9:10:10 AM
Can SQL Server Express accept remote connections? If so how? I am trying to copy a database from our main SQL Server 2005 database to a laptop that is housing a SQL Server Express. If anyone knows of a better method on how to get a copy to a SQL Server Express that would be great. -Thana...more >>

Un-restricted Transaction log file sql 2005
Posted by Moga at 7/17/2006 4:24:38 AM
The below script was used to create a database. The transaction log file was initially created with restricted growth but was changed to un-restricted growth. the issue i have is that the transaction log file reverts to restricted growth when un-restricted growth is specified. USE [master] ...more >>

Enforcing referential integrity question
Posted by CRT## at 7/15/2006 11:40:00 PM
How important is it to enforce referential integrity in a database? I'm working on a SQL database that has no foreign key constraints. The tables have primary and foreign keys, but the foreign key constraints are implied, not physically enforced. I did not design this, but I'm wondering, should I...more >>

Error 15135 on upsizing Access to Sql Server
Posted by Paul Proefrock at 7/14/2006 10:05:13 PM
I am trying to upsize an Access DB to Sql Server. The upsizing wizard runs fine when I try it locally to Sql Server Express 2005. When I try to upload it to our remote server, I keep getting a bunch of errors " Server Error 15135: Object is invalid. Extended properties are not permitted on...more >>

selecting sub records?
Posted by _adrian at 7/14/2006 10:43:09 AM
On a secondary table, there are two fields, one is the unique ID (UID) that's the key between the View and the Table for each record. The Table also has a field called Category. Within this table, there could be any number of records with the same UID, but different Categories. Kind of like ...more >>

SQL CD with SP4
Posted by Tark Siala at 7/12/2006 7:02:19 PM
hi i have SQL Server 2000 Enterprise on CD, and SP4 of SQL Server. how i can make new CD of SQL contains SQL Server With SP4, i mean when i install SQL i install SQL with SP4 Direct. -- Tarek M. Siala ...more >>

Newbie - Best Practice Backup Plan
Posted by Randy H at 7/12/2006 9:39:41 AM
I have a several critical databases that need backed up. A consultant created the databases and set recovery model as FULL, with AUTO SHRINK set to false. This made the log files grow and grow consuming disk space. We complained. The consultant wrote up instructions on how to manually ...more >>

How to get the column name alias from column data
Posted by gane at 7/11/2006 2:14:58 PM
Hi, I am using sql 2000, How can i write a query with column name as the column data. For eg: select a.title as a.title..... Thanks Gane ...more >>

Simple SQL Query Help
Posted by The One at 7/11/2006 12:00:00 AM
Sirs and Madams, Please help with a simple query I am having trouble with. I need the = total count of replies to a topic all in one query.=20 There's only one table involved.. Table board_posts id subject parent_id 1 subject 1 0 2 subject 2 1 3 subject 3 1 Expected Result...more >>

Microsoft SQL Server, Error: 1418
Posted by maria.hungerford NO[at]SPAM gmail.com at 7/10/2006 1:11:47 PM
I have just installed SQL 2005, SP1 server on two test computers and am trying to get database mirroring to work. No witness server is being used. I have done a FULL backup of the database and backed up the transaction log. I have also restored the database and the transaction log. On the mirr...more >>

ODBC error 3146
Posted by Thanas at 7/10/2006 8:18:57 AM
Hey everyone. Everyone here has been very helpful and I really appreciated. I have learned some much in the last couple of weeks. Thanks. I have another quick question. I seem to be getting an error ever so often. It is rather annoying and I am not sure why or how I can prevent it. The a...more >>

SQL Server Profiler (SQL server 2005)
Posted by Obason at 7/7/2006 6:17:16 PM
Dear Everybody: I try to run SQL Server Profiler, It always pop up this error window: "Only TrueType fonts are supported. There is not a TrueType font. How to solve this problem? Thanks for your help Obason ...more >>

SQL query problem with date/time format
Posted by JL at 7/7/2006 2:21:44 PM
I am using VB.Net in VS2005 against SQL2005. I am writing an UPDATE query and getting an error on my date/time fields. An example of my query string is - DOB = #3/12/1949 12:00:00 AM" I get the error - "Incorrect syntax nar '12' The way I generate the above string is from a data table and I...more >>

sqlmangr - Command Switches?
Posted by News Group at 7/7/2006 3:28:14 AM
Hi, Does anyone know if there is a list of command switches available for SQL Server Service Manager sqlmangr.exe? Thanks Colin ...more >>

Extra spaces using ISNULL()
Posted by Orlando Acevedo at 7/6/2006 7:57:25 PM
I need to compare two tables from external sources. The problem is that they don't share a single identifying field, so I'm creating a new one. In doing so, I'm using this formula: ISNULL(Field1, N' ') + ISNULL(Field2, N' ') + ISNULL(Field3, N' ') + ..... + ISNULL(Field15, N' ') Field2 and Fi...more >>

Need some help with Stored Procedure
Posted by Thanas at 7/6/2006 10:40:40 AM
Hi I am pretty new to SQL Server 2005 and I have already learn so much. I had a quick question. Where is the "Assisted Editor" for stored Procedures. I can edit them on my own but there are other on my team who have never even hear of stored procedures and it would be helpful to them. If you...more >>

sqLServer2000 desktop user access
Posted by Steven Bragg at 7/6/2006 10:19:34 AM
I can access all the tools of SQLServer2000 desktop when I'm logged on to my pc with administrator privileges, but if I'm logged on with power user and debugger user privileges the client software refuses to connect me. I prefer to use my pc without administrator privileges. Does anyone know...more >>

Need to get a list of tables and number of rows in each
Posted by Middletree at 7/6/2006 9:01:42 AM
I can't find the syntax to do this in BOL, but surely there's a way. For a given database, I'd like to execute a query which would return to me a list of all tables in the database, and the number of rows currently in each. Any help appreciated. ...more >>

Stepping into the world of SQL
Posted by Dave Griffiths at 7/6/2006 2:01:52 AM
Hi All Reading the posts with great enthusiasm. I am just starting on the journey of SQL. The question: I have a developers version of sqlserver 2000 boxed with my visual studio 2003. Should I install that and embark on my journey or download and install the 180 day trial version of sqls...more >>

Let me try phrasing my question a different way
Posted by Keith at 7/4/2006 4:29:41 PM
All, I appreciate everyone's patience, as you can tell, I really am new at this. Let me try phrasing my question a different way: What properies of a table prevent data from being returned by a SELECT statement in a stored procedure, when the same select statement executed from inside the S...more >>

What can cause a query to return no data rows?
Posted by Keith at 7/4/2006 8:37:34 AM
Query returns no data rows even though the table contains data. The query text, scripted table, and data are shown below. What could keep the query from returning the two data rows that exist in the table? Thanks, Keith THIS IS THE QUERY: ALTER PROCEDURE [dbo].[GetUsers] AS SELECT * ...more >>

How to create a Generator ?
Posted by Joanna Carter [TeamB] at 7/4/2006 12:00:00 AM
Hi After many years using InterBase where I had generators to generate unique sequence numbers, I am now using SQLServer 2005 for the first time. I want to generate a system-wide, unique, sequential Int32 value that I can call in a single command from C# .NET 2.0 Do I have to use a sing...more >>


DevelopmentNow Blog