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

Filter by week: 1 2 3 4 5

Bad Query?
Posted by GTi at 1/7/2005 8:34:02 PM
I have a query like: SELECT "ProjectMembers"."RoleText", "ProjectMembers"."Description", "ContactTable"."Name1", "ContactTable"."Name2", "ContactTable1"."Name1", "ContactTable1"."Name2" FROM "ContactTable","ProjectMembers","ContactTable" "ContactTable1" WHERE ("ProjectMembers"."ProjectNDX"=...more >>

Working with MSDE
Posted by Javier at 1/7/2005 7:22:23 PM
Hi All I've just installed MSDE and I want to know how could I work with it. Years ago I've worked for a while with SQL Server and I used Enterprise Manager but it didn't come with MSDE. Which tools could I use ? Also, I need to connect a java application with MSDE. I can't use domain ...more >>

looping through results of a OSQL query
Posted by pveechoud NO[at]SPAM xs4all.nl at 1/7/2005 3:11:09 PM
Hello, I have the following problem. I wrote a batch file that runs a sql script on SQLServer 2000. This script must be executed on several databases. This works fine. The problem is that in my database is a table that holds a databases i have to update with this script. What i want is ru...more >>

Comparing a column list split to a table.
Posted by twdo at 1/7/2005 1:57:23 PM
Let me see if I can explain my situation clearly. I have a table with the columns: answer_id, question_id, member_id, answer - answer_id is the primary key for the table. - question_id relates to another table with questions for a user. The table holds the question and the possible choice...more >>

Replication - Can not create Publication database
Posted by nedabada NO[at]SPAM yahoo.ca at 1/7/2005 1:31:39 PM
Hi, I am trying to use Enterprise Manager Wizard to create a new Publication database but I got the following message. Error 2812: Could not find stored procedure MyDB.dbo.sp_MSadd_logreader_agent There seems that some replication stored procedures. Any help? Thanks in Advance...more >>

Troubleshooting needed
Posted by sage703 at 1/7/2005 1:00:58 PM
Hi, we just started receiving the following error messages about 3 weeks ago. We don't get them all the time, or even on the same pages necessarily, but we get them from time to time and our sql server connection is slower in the last three weeks also. Our database is remotely hosted, and the pr...more >>

Optimal SQL
Posted by teddysnips NO[at]SPAM hotmail.com at 1/7/2005 7:23:10 AM
Please excuse what is probably a no-brainer, but here goes. Is there any difference, in terms of performance or any other pertinent factor, between: SELECT * FROM tblCustomers INNER JOIN tblCustomerOrders ON tblCustomers.fldCustomerID = tblCustomerOrders.fldCustomerID and SELECT * FROM...more >>

Securing local MSDE applications
Posted by Danny Liberty at 1/7/2005 4:57:07 AM
Hi, I am writing an application that uses MSDE to store data. Both application & MSDE run on the same computer. I want to regulate the operations done on the DB by the user. For example, I don't want to allow "standard" users to delete records, update certain fields, etc... I can regulate th...more >>



querying by date on smalldatetime
Posted by Marc Pelletier at 1/7/2005 4:16:28 AM
Hello, I have a table with a Day field, defined as smalldatetime. I am filling it from a CSharp application with the following code: DataRow r = dtStaDays.NewRow(); r["Station_ID"]= station_ID; r["Day"] = sd.Date; r["Range"] = rangeTide; etc. Howeve...more >>

Connecting to SQL Server 2000
Posted by JA at 1/7/2005 4:00:17 AM
Hi, I am total newbie to SQL Server. My new host tells me I can connect through AccessXP or 2002. I have Access 2000. Can I not connect with that also? Thanks, JA ...more >>

Restore of Backup problem
Posted by butatista at 1/7/2005 2:27:08 AM
Please help SQL Server 2000 Standard I am trying to restore databases on my server and am unable to get them to restore using the database option. For example, the location of my backup file is: D:\MSSQL\BACKUP\MY_DB\MY_DB_ddmmyy.bak But when checking the properties of the restore on...more >>

how to fine a hole in a records?
Posted by Chapai at 1/7/2005 1:34:40 AM
Hi all! I need your help to realize algorithm for stored proc or trigger. tool: MS SQL server 2000, T-SQL TABLE: [unique_id] [mynumber] [week] [unique_id] - bigint,primary key, identity auto-increnment [week] - int, 1-53, week number [mynumber] - int, 1 - 7, for every week, dail...more >>

SQL NULL or Value
Posted by Dishan Fernando at 1/6/2005 10:16:14 PM
Hi my prob is like this.. DECLARE @id int SELECT * FROM Table1 WHERE ID = @ID if @ID is null , I want to select all the records, that ID is null Thanks Dish ...more >>

LoadFromSQLServer won't work......
Posted by jdionne NO[at]SPAM idealconsulting.com at 1/6/2005 8:34:07 PM
I have a VB.NEt Winform app deplyed on ServerA. I have a DTS package on ServerB. When I try to load the package with: package.LoadFromSQLServer(serverB, uid, pwd, DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_Default, , , , packageName) Where serverB, uid, pwd are variables set in the program...more >>

How To Access Visual FoxPro Data from SQL Server ?
Posted by mohd.osman NO[at]SPAM gmail.com at 1/6/2005 4:50:38 PM
I'm trying to access Visual Fox Pro Data from Sql Server 2000, Can anyone have any Idea ? Thanks ...more >>

Database marked as suspect please HELP!
Posted by kurotsuke at 1/6/2005 4:09:11 PM
Hi, I restored my Windows XP system and discovered that I cannot access a MSDE DB that was saved in D: drive (I restored my primary partition in C). How can I restore it? Thanks a lot....more >>

Any MySQL book recommendations for newbie?
Posted by shusting NO[at]SPAM aeteam.net at 1/6/2005 4:07:15 PM
I just bought the book, Build Your Own Database Driven Website, by Kevin Yank, and I'll start working on a database soon. Any other books, etc., you can think of that a know-nothing newbie should read? Is the book above a good one? Thanks! Steve H...more >>

Large amount of pages for few rows
Posted by Jakob at 1/6/2005 4:05:12 PM
Hello, I have experienced that some of my tables occupies an extremely large amount of pages but with few rows. An example is a table with 37 rows over 22000 pages !. The columns are simple integer and char. I fixed the problem by introducing a clustered index. Now it only uses 1 page. But can...more >>

Automatically run a stored procedure at 6am every day?
Posted by planetthoughtful NO[at]SPAM gmail.com at 1/6/2005 3:55:04 PM
Hi All, I'm wondering if anyone can point me at some online resources that demonstrate how to run a stored procedure against an SQL Server 2000 server at 6am each day? Any help much appreciated! Much warmth, planetthoughtful ...more >>

Stored Procedures - Help
Posted by pkruti NO[at]SPAM hotmail.com at 1/6/2005 2:11:57 PM
Below is a stored procedure i am working with and i am trying to drop the yesno_holding table if it exists but how do i add it back? Meaning i want it to drop if it exists but i want to add it back if it doesnt exist. the reason why i have to drop it is because when i run the stored procedure it...more >>

enable a trigger
Posted by Karen at 1/6/2005 12:21:52 PM
Hi! I know that you can enable/disable a trigger through the alter table command. Once a trigger is disabled, is there a way to determine whether it is disabled or enabled? I see there is a status column in sysobjects ...is that what I should be using? thanks in advance for any help Karen ...more >>

Changing physical SQL Server
Posted by Yannick Turgeon at 1/6/2005 11:18:05 AM
Hello all, We are in the process of upgrading our SQL physical server (with SS2k). In the process we will change the OS form NT4 to W2K. What is the best way to copy all my databases and SQL logins, roles, jobs, alerts, etc. from my actual (old) SQL Server to my new one? Thanks for your ...more >>

Unusually High CPU on SQL Server the 2nd day after a reboot.
Posted by JL at 1/6/2005 10:42:33 AM
To All, I have a SQL2KSP3a database(<1GB) running on a 4x3GB physical CPU with 4GB of ram. It is Windows Server 2003 with hyper-threading turn on. There are ~420 .Net users/cxns (fat client, no web/app servers) with connection pooling and ~1 trx/sec. The database growth is neglegeable and a...more >>

Newbie Questions: Desktop Engine
Posted by richlich at 1/6/2005 9:17:42 AM
I'm a SQL Server newbie. I just installed the free SQL Server 2000 desktop engine on my Windows XP system. The installation, done from the command line, did not install any icons for the Query Analyzer, Enterprise Manager, and other things you get with a full SQL Server 2000. (I've done "full" i...more >>

An interesting holistic question for the groupmind...
Posted by Roy at 1/6/2005 9:09:17 AM
Ok, I work for an organization which receives numerous contracts from numerous clients. Now, with each new contract comes new flatfiles needing importing (with differing formats and fields, etc...), faulty data, etc... It's not as easy as just telling all the contractors "ok, we now need all ...more >>

Sleeping processes take a long time to kill-
Posted by ujjc001 at 1/6/2005 9:04:44 AM
Hello all. I have many connections that are sleeping. I can right click, kill, up to 2 at a time. It takes about 20 seconds to kill it. Is that normal? I tried to make a stored procedure to kill them but it ate all the power of the server, (all users yelled at me at the same time :o) ) Is ...more >>

Strange datetime conversion error in stored procedure.
Posted by shyner NO[at]SPAM gmail.com at 1/6/2005 8:51:35 AM
Hi Everyone, I've been battling this for two days with no luck. I'm using SQL Server 2000. Here's the mystery: I've got a stored procedure that takes a single varchar parameter to determine how the result set is sorted. Here it is: CREATE PROCEDURE spDemo @SortField varchar(30) AS ...more >>

Word Update
Posted by ghirpara NO[at]SPAM yahoo.com at 1/6/2005 7:45:02 AM
Hi all, I'm trying to figure out if it's possible to simply replace instances of a given string of text wherever it occurs in all tables and columns for a given database. I'm using SQL Server 2000 sp3. All the update/replace commands I've looked at so far seem to require up-front knowledge ...more >>

Database Replication
Posted by cbaffigi NO[at]SPAM apsf.com.ar at 1/6/2005 7:35:54 AM
When I create a suscription with the option "No, the Suscriber already has the schema and data", and I modify data, I have an error like this: Could not find stored procedure 'sp_MSdel_ac_callejero'. (Source: SE110556 (Data source); Error number: 2812) How can I generate a replication rest...more >>

Data checking?
Posted by roy.anderson NO[at]SPAM gmail.com at 1/6/2005 6:13:08 AM
Hey all, prolly a simple solution, but why isn't the following string working in my execute sql step within DTS? It produces results, just not the ones I want... What am I doing wrong? select x from new_files where x like '%[^0-9]%' and x like '%[^a-z]%' It's displaying all the records? I...more >>

New login cannot retrieve data from db
Posted by Jim Richards at 1/5/2005 7:52:34 PM
Hello all. I created the "student2" user account and set the password to "student2". I then went to Enterprise Manager and in the class_mgr database and in its customers table, I gave this student2 user account access to the database and set all permissions to the table. But when I log in to SQ...more >>

Design Question
Posted by Beringer at 1/5/2005 3:55:46 PM
I am creating a table and would like to know the most efficent way to do this. One of the colums will be text datatype and can have several thousand characters in it (less than10k). The 'ntext' datatype in SQL and hold over a million characters so that isn't a problem. The question is: Is i...more >>

Best practice for Data size/Log Size ratio
Posted by Jeffrey Sheldon via SQLMonster.com at 1/5/2005 3:54:41 PM
Just wanted to know what is a general rule of thumb when determining log file space against a database's data file. We allow our data file for our database to grow 10%, unlimited. We do not allow our log file to autogrow due to a specific and poorly written process (which we are in a three month...more >>

SQL Server 2000 Service Pack 3a installation fails
Posted by Paul at 1/5/2005 2:43:53 PM
I have an installation of SQL Server 2000. Both MBSA and @@version show this to be the gold release. When I install Service Pack 3a, it shows no error. But after restart of the server, it's still unpatched, by both MBSA and @@version. Any idea what may be going on here? ...more >>

Replication(Publisher-Distributer Problem)
Posted by laststubborn at 1/5/2005 1:58:47 PM
This is the first time that I am trying to implement replication. I came across with a problem while I was creating my publisher and distributer. I want to create the publisher and the distributer at the same machine however I got this error " SQL Server Agent on <machine name> currently uses ...more >>

Create a database login in the default domain
Posted by Aaron at 1/5/2005 11:49:22 AM
I'm trying to create a login in the default domain. I know I can pull this information from xp_loginconfig, but don't see how I can use it in the context of sp_grantlogin. For example, pull the domain the user is currently logged in on and insert it into the sp_grantlogin script. Has anyone ...more >>

Best way to keep track of SQL Server Changes
Posted by SQLDBA at 1/5/2005 11:25:20 AM
What would be the best practice to follow to keep track of MS SQL server changes... Stroed procs, tables, views, triggers, indexes, DTS and also jobs ect.... I am not quite sure how Source safe works with sql server. Any other way to do this... Even if its manual work, its okey.. I would appr...more >>

XML output serialized for remote query
Posted by Geo at 1/5/2005 9:30:12 AM
Hi, Im running into a strange problem here! I have created a linked server on one of my SQL Servers (local server). Lets call the linked server as LS1. I have an sproc which resides on the remote server(LS1) and uses a FOR XML query. On running this sproc from my local server using linked ...more >>

Starting the SQL Service through Enterprise Manager
Posted by ceadtinneh at 1/5/2005 8:10:19 AM
Folks, We're implementing a software based mirroring solution. This solution requires that the SQL Server service on the target server be stopped while data is being replicated from the source server. One problem we encountered while testing was that the SQL Server Service on the target ser...more >>

Collecting Active Directory dates
Posted by Ross Luker at 1/5/2005 7:57:11 AM
Hi, I've just started using ADSI to pull in info from our Active Directory tree into SQL Server 2000. I've made the link ok, and can pull in most fields (cn whenCreated etc) fine. However, there are some date fields (the one I'm interested in is pwdLastSet) that are represented as a long nu...more >>

transaction question
Posted by korovyev NO[at]SPAM rambler.ru at 1/5/2005 4:30:50 AM
Hello! It seems like I have some misunderstanding about the way transactions work and would appreceate your help. I want to delete records from 2 tables. Some records may not be deleted due to reference constraints in which case no effect must take place (i.e. no records must be deleted). ...more >>

Does the client have to be running IIS??
Posted by Phil at 1/4/2005 11:53:54 PM
I guess I don't fully understand what IIS does/is! I can appreciate the need for the host/server to be running IIS but it 'appears' restrictive for your clients to need to do the same. I have created two web projects, both with host and client apps. One is a web service and the other using .NET ...more >>

OFF TOPIC: SQL Server and .NET talent
Posted by Sam Gearhart at 1/4/2005 11:25:58 PM
Greetings - I've been poking around online, looking for an answer to the question, "What sort of pool of technical expertise is available in <name of city>?" I'm in the initial business plan stages of a new software company/product and balancing cost-of-living/lifestyle quality issues agains...more >>

Transfer from 2000 to 7.0 - what can be done?
Posted by Jeffrey Sheldon via SQLMonster.com at 1/4/2005 2:36:23 PM
I have a log file that went out of control (147GB), I feel that doing a shrink on the file/database would be time consuming so I am thinking of recreating the database from an imported version from our test server. I know that data can flow from one SQL server to another without regard to the SQL...more >>

ORIGINAL SIN IN SQL 2005!
Posted by Ross Presser at 1/4/2005 2:12:39 PM
from the December 2004 _Redmond Magazine_, "Finding Gold in Yukon": http://redmondmag.com/columns/article.asp?EditorialsID=838 "Developers will also pick up the usual new-version enhancements to T-SQL, including error handling, recursive queries, a ROW_NUMBER function, a PIVOT relational opera...more >>

Question on generating SQL scripts using Enterprise Manager
Posted by drdeadpan at 1/4/2005 1:02:09 PM
Hi, I was using enterprise manager to generate a script for my DB. I scripted only my tables and views and in Options I picked all the options EXCEPT "script Primary Keys, Foreign Keys and Constraits " ( which I was going to script seperately ). I noticed that the the generated file still h...more >>

Log Shipping - false alerts, real problem...
Posted by Tim Groulx at 1/4/2005 12:40:21 PM
Hello, I am setting up log shipping between two SQL servers. Everything in the setup seems to work fine. The problem I am having is that the "Log Shipping Alert Job - Backup" job is failing, event though the tlog backup copy & restore process is working fine. When I look at the histories of b...more >>

Backing up design changes
Posted by Jerry Porter at 1/4/2005 11:38:05 AM
Is there a way to back up the design changes in a SQL Server database without backing up all the data? It's just test data at this point. ...more >>

Maximum user connections?
Posted by Maddman at 1/4/2005 10:52:43 AM
Newbie here. I've got my database set up in SQL 2000, and have started an Access adp for a front end. I have 10 licenses, and at the moment the only accesses are the server through Remote Desktop and one person into the ADP. I started getting ODBC timeout errors when running a complex query...more >>

Connection Problem with the Workstation
Posted by laststubborn at 1/4/2005 10:10:07 AM
Hi all; I am trying to replicate our database by using the merge replication. >From server side I tried to connect to the workstation. I have installed MSDE to the client machine. I can see the machine name on the SQL Server Group however I wasnt able to create the conncetion between the mach...more >>

Insert Trigger Help
Posted by Martin at 1/4/2005 10:04:18 AM
Hello, I'm new with triggers and I can not find any good example on how to do the following: I have two tables WO and PM with the following fields: WO.WONUM, VARCHAR(10) WO.PMNUM, VARCHAR(10) WO.PROBLEMCODE, VARCHAR(8) WO.LABORGROUP, VARCHAR(8) PM.PMNUM, VARCHAR(10) PM.PROBLEMCODE, ...more >>

SQL Agent Job Fails Immediately after Invoked
Posted by Neurocon NO[at]SPAM gmail.com at 1/4/2005 9:52:22 AM
Hey everyone -- I've been having this problem for a couple weeks and was hoping maybe someone can help out a little bit. Synopsis: This SQL agent job contains code to perform a full database backup with verification and is writing to a local disk array. I typically also use some code for...more >>

Potential issue with DTS and Log Shipping
Posted by guevara_81 NO[at]SPAM yahoo.com at 1/4/2005 8:12:28 AM
Hi everyone. I have a question that maybe some of you may be able to shed some light on. My set up involves three SQL Server Databases. First one, used by the application. Second, copy of first via log shipping. Third, contains data aggregation from the Second. Now, my issue is that I ha...more >>

Checking backup file questions
Posted by John S at 1/4/2005 6:45:22 AM
Hi All, I have several questions about checking backup file : a. When SQL Server receive a command : BACKUP DATABASE test to DISK = '\\pc1\netdb\BTEST', does it verify BTEST file before ending the job ? b. Is there any special command for checking / verifying a backup file ? c. I...more >>

How to query for records that have not been replicated
Posted by miltonmoura NO[at]SPAM gmail.com at 1/4/2005 3:58:34 AM
Hi, I am using Merge Replication for synchronizing a bunch of laptops running MSDE with a central SQL Server 2000 production server. This database is used by an application that needs to know which records have not yet been replicated, at any givem time. Here's a simple scenario: User ...more >>

still not clear
Posted by Hennie de Nooijer at 1/4/2005 3:15:22 AM
hi thank you for this solution Hugo (dutch?) and it's very handy, thank you but my issue is that we created dozens of views with my function. This functions returns an integer of a date. This function has to give a lowerlimit and higherlimit back when dates are out of Calendar range. But i wa...more >>

What happens to Windows Authentication if domain failure occurs?
Posted by Vinodi at 1/3/2005 9:32:05 PM
Hi, I have a peculiar problem (or maybe not). I have SQL clients installed on XP boxes. These XP boxes are a member of let us say "XYZ" domain. SQL Server is installed on one of the boxes having Windows 2000 Server in the same network. The installation has been done on local domain account. S...more >>

Datepart query example help needed or something else??
Posted by sdowney717 NO[at]SPAM msn.com at 1/3/2005 5:55:20 PM
The field itemdate is a datetime field in sqlserver2000 DB This works fine: Select Id From BookData Where (MONTH(itemdate) = '01') and (DAY(itemdate) = '02') and (YEAR(itemdate) = '2005') order by TitleDuplicate This does not work: Select Id From BookData Where (MONTH(itemdate) = '01') and...more >>

MDF and LDF files size command
Posted by John S at 1/3/2005 4:50:23 PM
Hi All, I want to shrink a transaction log using : USE Master BACKUP Log test WITH truncate_only USE test DBCC shrinkfile(test_log, 0) These commands will be executed from a workstation. After shrinking, I want to see the size of the transaction log and database files. But, ...more >>

Connection Failed
Posted by Justin at 1/3/2005 3:05:12 PM
SQL 2000 Windows 2000 sp4 I have created a group called "queryonly" in Active Directory. I have added myself to this group. When I attempt to create an ODBC connection to the SQL server I get "connection failed". When I add myself explicity (ie domain\user) it connects fine. Why is the g...more >>

Is it possible to save and force a plan?
Posted by tracy NO[at]SPAM guisolutions.com at 1/3/2005 2:54:31 PM
I have a complex query (16 table join) that until five days ago took 30 sec to run. It now takes eight hours. I restored a backup of the database from five days ago and the query plans are completely different for the same exact query. Five days ago the final estimated row count is 1.6M now i...more >>

Database Design Question
Posted by Don Vaillancourt at 1/3/2005 2:31:23 PM
Hello all, Over the years as I design more database schemas the more I come up with patterns in database design. The more patterns I recognize the more I want to try to design some kind of generic design patterns that can be used and shared amongst many sub-schemas. For example, the gro...more >>

SQL "Commandments"
Posted by ryankbrown NO[at]SPAM hotmail.com at 1/3/2005 2:25:31 PM
I was wondering if anybody has a document that states do's and don'ts when programming for a MS SQL DB. I was under the impression that Microsoft once produced such a document. Rather than a "Best Practices" type document it was more of a "Worst Practices" document. Stating certain procedures th...more >>

Sql View
Posted by Mike Lander at 1/3/2005 1:22:59 PM
I am doing a monthly report to export to an excel Doc from SQL 2000 using views. With my design it works great until it is the first of the month. As the report always checks from yesterday to the first of the current month. One view is below. The date statement checks between the first...more >>

Can a stored proc swallow an error
Posted by wackyphill NO[at]SPAM yahoo.com at 1/3/2005 10:06:21 AM
I have a table I insert a record into to give access to a user. It uses primary keys so duplicates are not allowed, so trying to add a record for a user more than once is not allowed. In my .NET programs, sometimes it's easier to let the user select a group of people to give access to eben if ...more >>

SQL Server: Backup/Restore
Posted by WOODY at 1/3/2005 9:50:56 AM
I have SQL Server desktop installed on my laptop. I have a database on these that i created. but when i try to back it up to disk, i have no choices available to select either disk or tape. i still try to click on the 'add' button to select a file and it fails. i checked the settings and...more >>

nocount on problem
Posted by GM at 1/3/2005 9:16:21 AM
i use set nocount on inside the stored procedure at the beginning however the Number of Rows Counted/Affected shows up when I execute the stored procedure in query analyzer using execute sprocName. I also tried to add the SET NOCOUNT ON at the beginning of the procedure and it still shows the...more >>

Intensively used function in view needs a minimum and maximum from a table PartII
Posted by hdenooijer NO[at]SPAM hotmail.com at 1/3/2005 8:26:56 AM
Because of an error in google or underlying site i can reply on my own issue. Therefore i copied the former entered message in this message. -------------------------------------REPY---------------------------------- Hi Maybe i wasn't clear. I want to dynamically check whether what the lowest da...more >>

How can I get c# text and use as parameter?
Posted by trint at 1/3/2005 8:11:59 AM
I want to grab what is in textbox1, put in string, and send as a query to bring up report with only textbox1 occurances in table. How do I do that please? Thanks, Trint ...more >>

Any way to easily add this computed column (divide by zero problem)
Posted by hobo at 1/3/2005 7:32:26 AM
I have this query that I would rather not turn into a stored proc. because the client really has no budget. I was hoping there would be a way to add this statement inline to the following sql with some kind of IF statement without writing it all out. The problem is either total cost or convers...more >>

ListAvailableSQLServers Problem
Posted by arfanameer NO[at]SPAM hotmail.com at 1/2/2005 10:16:20 PM
I have been using SQLDMO listavailableSQLServers . It displays all the servers but it doesnt list the local machine in which SQL Server too is running. Am i missin something? ...more >>

Why two different views?
Posted by Jim Richards at 1/2/2005 5:33:30 PM
Hello all. I have an administrative account setup in Win XP Pro and I also have a user account named "Jim Richards" (kinda logical, huh?). I previously had to switch to the admin account to access the SQL Server Databases. Then I gave myself admin privalidges to the SQL Server to the "Jim Richard...more >>

Why two different views?
Posted by Jim Richards at 1/2/2005 5:09:13 PM
Hello all. I have an administrative account setup in Win XP Pro and I also have a user account named "Jim Richards" (kinda logical, huh?). I previously had to switch to the admin account to access the SQL Server Databases. Then I gave myself admin privalidges to the SQL Server to the "Jim Rich...more >>

Can't Get Decimal to Show Up!
Posted by erikthenomad NO[at]SPAM hotmail.com at 1/2/2005 12:27:13 PM
Hey...I've been cracking head about this one all day, and I'm sure it's an easy answer, but here goes: I have a column entitled Sequ which is defined as a Decimal with Precision 10 and Scale 5. In an ASP.NET page, I'm performing a calculation which is inserted into the Sequ column. I'm doing...more >>

Backing up and restoring SQL Server
Posted by Rick at 1/2/2005 7:24:21 AM
I want to reformat my servers harddrive and install a newer operating system (Win 2003). I am running SQL Server 2000 with about 10 databases. What is the best way to backup and restore SQL Server for this so I don't lose anything. Thanks, Rick ...more >>

PDF Bookmarks
Posted by Alon at 1/2/2005 4:16:25 AM
When I export a report to PDF format, the bookmarks pane is closed, and needs to be pressed in order for the bookmarks to open. Is it possible that Upon opening the PDF, the bookmark pane will be visible ? ...more >>

t-sql alter table udf help!
Posted by David Housman at 1/2/2005 3:37:14 AM
Hi, I'm trying to write a function check if a column exists on a table, and creates it if it doesn't. The line that the query analyzer is citing is noted. It seems unhappy taking variables in the ALTER TABLE command. I can think of a hack around this, but I'm hoping there's a better way? ...more >>

SQL server log file is not shrinked
Posted by Moti.Ba NO[at]SPAM gmail.com at 1/2/2005 1:24:18 AM
I have MS SQL server 2000 with MOM server. I was able to shrink the database file, but when i try to shrink the log file i fail. I use "shrink database" wizard and try to reduce the log file from 640 MB to 32 MB and i select this number in "shrink database to __" and wait. I got a success mess...more >>

Select on large table.
Posted by LineVoltageHalogen at 1/1/2005 2:05:22 PM
Greetings All, I was wondering what would happen if I were to do a "select * from table" on a table that has about 5 million rows. Would my read block other writers to the same table? Would it block other readers? I know SQL uses optimistic lockign by default but I am not sure what this means...more >>


DevelopmentNow Blog