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 > september 2006

Filter by week: 1 2 3 4 5

grant a user a temporary SA permission for a spesific action
Posted by Sam at 9/29/2006 7:41:32 PM
how can i grant a user a temporary SA permission for a spesific action (like alter a column in a table)? thanks ...more >>

raiserror
Posted by Sergey Karimov at 9/29/2006 7:01:02 PM
I have question about RAISERROR command. Look at the example above. first select shows one record in table, that means that transaction was committed. second select shows that transaction was not committed. My intention is raising exception similar to PK constraint violation. As you see from...more >>

File Pointing in SQL
Posted by kdawg99 at 9/29/2006 11:58:16 AM
I am trying to reference files in my SQL db which are stored on my database. I do not want to store the files in the actual database. I have a web interface where the user searches for the file finds the referenced file then tries to download it. But for some reason when they try to download t...more >>

Unexpected Activity
Posted by Joseph at 9/29/2006 5:37:02 AM
I am new to SQL 2000 Administration. My SQL Server has started indicating a lot more disk activity than it has done in the past. There are no jobs being run and it is degrading the performance of the system. How can I track the problem to the source? Thanks in advance....more >>

problem with IN in stored proc
Posted by Daves at 9/28/2006 11:02:43 PM
I parse a querystring from a .net website into a stored proc; ALTER PROCEDURE Postlists_CreateList ( @Groups varchar(255) = NULL ... ) AS INSERT INTO Postlists_Recipients (PostlistID,UserID) SELECT @PostlistID, UserID FROM UsersInGroups WHERE UsersInGroups.GroupID IN (@G...more >>

Executing an sql script on a remote database from Visual Studio .NET 2005
Posted by Nathan Sokalski at 9/28/2006 5:09:41 PM
I am connecting to a remote SQL Server database from Visual Studio .NET 2005. I have an sql script located on my machine containing the sql code I want to use to create several tables, and want to execute it. How can I do this from Visual Studio .NET 2005? I do not like designing the database ...more >>

Can I use sp_rename in VB program?
Posted by mark at 9/28/2006 3:01:17 AM
dim gConn as new adodb.connection gConn.open "...." strSQL = "sp_rename 'mytable', 'mytable1','OBJECT'" gConn.Execute strSQL, , adCmdStoredProc Why last SQL command cannot be executed? ...more >>

DateTime format conversion problem
Posted by herethere NO[at]SPAM newsgroup.nospam at 9/28/2006 12:32:41 AM
This one is going to be so easy once I get an answer. When I do a select on a table with a DateTime field I get an answer of "2006-09-27 16:23:24.000". When I SELECT that into a variable with a DateTime format I get "Sep 27 2006 4:23PM'. What I want is to get select format in a variable. ...more >>



Nested while loop instead of nested cursors
Posted by venkat at 9/27/2006 4:12:28 PM
Hi, I am trying to write a t-sql with nested while loop and table variable instead of cursors. Can some one pls help me if am doing correct with the below code. eg declare @myTable table (rowId int identity(1,1), p1 int, p2 int, p3 int) declare @nmyTable table (rowI...more >>

Date and time
Posted by Garth at 9/27/2006 9:48:32 AM
I am having an issue with a query that is trying to compare a string date to today's date I have a table like this PC Name Date (year-month-day) (Varchar) PC1 2006-02-20 PC2 2008-11-11 PC3 2007-08-29 Etc. Etc. ...more >>

Does backup include stored procedures?
Posted by Dagwood Bumstead at 9/27/2006 9:16:39 AM
I can't seem to find confirmation of this anywhere... When I do a backup using the maintenance plan in enterprise manager, does it include EVERYTHING? ie... stored procedures, views, users, Or does it only backup the data, requiring a reinstallation of everything else? THanks,...more >>

how to use variable in USE method?
Posted by mark at 9/27/2006 2:26:54 AM
I wrote a store procedure like this: declare @dbname nvarchar(50) declare db_cursor cursor for select name as database_name from master.dbo.sysdatabases where has_dbaccess(name) = 1 and (name like '[0-9]%') open db_cursor FETCH NEXT FROM db_cursor INTO @dbname WHILE @@FETCH_STAT...more >>

Questions about MSDE and SQL 2005 Server Express
Posted by Tony Girgenti at 9/27/2006 12:20:22 AM
Hello. I don't understand the SQL Databases. I was once using MSDE of SQL2000(Server name = DHJC2R91). Since playing with VWD, i downloaded and installed SQL Server 2005 Express Edition(It gave me a server name of DHJC2R91\SQLEXPRESS). After that when i use the systray icon with the li...more >>

SQL 2005 Database Location
Posted by SW at 9/26/2006 5:35:37 PM
Hi, I installed SQL 2005 onto my D: drive but somehow the data is being stored on my C: drive. (I only noticed this when my c: drive filled up!). In Server Properties, there is a Default location for datafiles box. If I just enter the desired location in there (it's currently blank) will the...more >>

Is there something like a completely external trigger to catch updates?
Posted by karen at 9/26/2006 9:37:19 AM
Hi- We need to find out when records are added or changed in a vendor's database for a customer. The customer has said that we can't add triggers nor make other changes to their database. I've been familiar in the past with SQL databases (Oracle, Informix), but haven't been using them curre...more >>

LDF File Size, How big is too big?? and
Posted by WANNABE at 9/26/2006 9:12:07 AM
What is the best way to manage Log file growth?? We have a document management program and the MDF file is about 3.5 gig, but the LDF file suddenly ballooned up to 34 gig. The data is backed up nightly and the logs are backed up hourly. I thought that would allow the log file to "flush ou...more >>

Integer presented as Text
Posted by Anders Eriksson at 9/26/2006 12:00:00 AM
Hello, I have a table where a value is saved as an integer (value 0, 1, 2). Now the customer wants to have this presented as "Low", "Normal", "High" Is there some SQL magic that can create a recordset where the integers is replaced with the text? // Anders -- English is not my first,...more >>

REtrieving Data from More than One Table
Posted by JC HARRIS at 9/25/2006 4:25:19 PM
I am new to this so hopefully you'll bare with me if this is a stupid question. I receive data in a dbf format from the state office on a yearly basis. I have figured out how to use SSIS to pull these into the SQL system as different tables (e. Birth2002, Birth2003, Birth2004) within a sing...more >>

inconsistent RESTORE DATABASE issues
Posted by APB at 9/25/2006 12:10:02 PM
Hello. I'm restoring databases from their .BAK files and everything went smoothly until the last 2. this is the error message I am recieving in Enterprise Manager when I attempt to restore from device : ----------------------------------------------------------- Device activation error....more >>

@ symbol in field name problem
Posted by Vayse at 9/25/2006 12:00:00 AM
A third party app supplies a table in a SQL database. Unfortunately they have chosen to end all their field names with # or @. If I create a view, and include a @ field, the diagram pane will not be available next time I open that view. Is there a way around this? Thanks Vayse ...more >>

Sql Server Professional Magazine
Posted by Tim Zych at 9/23/2006 8:58:32 PM
Does anyone here read the magazine "SQL Server Professional" by Pinnacle? I got a sample copy and it seems really informative and well written. It's expensive though, but if the whole subscription is as good as the trial copy, I think it would be worth it. What do developers think? Is it worth...more >>

SQL Server Desktop
Posted by OdieTurbo at 9/22/2006 7:58:48 AM
Hello, I have SQL Server Desktop version 7 running on my laptop. I am using as a data source for Cognos DecisionStream. The issue I am having is that my database has grown quite large. Everytime I try to do anything, my database is EXTREMELY slow. What can I do to increase the speed/efficien...more >>

Copy Database
Posted by Tom Roth at 9/21/2006 2:42:02 PM
Running SQLServer2000 SP3. I have a database (DB1). I need to make a copy of that database (DB1_Test). The new database (db1_Test) should have all of the structures, permissions, etc. I don't want any of the data. Can someone help me? -- Tom...more >>

Transaction Log Errors
Posted by Tom Roth at 9/21/2006 8:39:01 AM
I'm running SQLServer 2000 Standard. I have a database that is set for Recovery Mode = Simple. The dboption "trunc. log on ckpt." is set to TRUE. I have also issued the truncate log command "BACKUP LOG DB_Name WITH TRUNCATE_ONLY". I have penty of available disk space. I still get the fo...more >>

how to query
Posted by Anders Eriksson at 9/21/2006 12:00:00 AM
Hello, If I have this table: IdNo int Version int data ... IdNo and Version is the primary key. How would I write an SQL query to get the latest version of a all IdNo? // Anders -- English is not my first, or second, language so anything strange, or insulting, is due to the tra...more >>

Advantages of SQL Server?
Posted by JustinP at 9/20/2006 10:25:33 PM
I've just split my db and am using Access as my front end. Are there any advantages / additional functionalities of having SQL Server as my back end that I can take advantage of? ...more >>

Problem with \ in ALTER SCHEMA dbo TRANSFER OWRD\julainih.AuthorList
Posted by frostbb at 9/20/2006 5:23:35 PM
SMS Query complains about the backslash in the following statement. ALTER SCHEMA dbo TRANSFER OWRD\julainih.AuthorList The old trick of doubling the backslash ALTER SCHEMA dbo TRANSFER OWRD\\julainih.AuthorList doesn't work either. What do I need to change to let this statemen...more >>

Desupport dates for SQL Server 2000
Posted by parrymdp at 9/20/2006 12:34:02 PM
Hi, I've been trying to find desupport dates for SQL server 2000, but having difficulty finding anything. Can someone provide this information to me. Also, information about upgrading to 2005 would be helpful too. Thanks, Mike...more >>

Conditional "Where" clause question
Posted by Alejandro at 9/20/2006 11:01:25 AM
I have the following "Where" clause WHERE (dbo.UserLogin.Enable = 1) AND (dbo.Users.Archivedcont = 0) and convert(char(8), loginstartime, 108) < convert(char(8), getdate(), 108) and convert(char(8), getdate(), 108) < convert(char(8), loginendtime, 108) But I only want the second line of the...more >>

Question on query
Posted by Alejandro at 9/20/2006 10:49:05 AM
I have the following query: Select convert(char(8), loginstartime, 108) as startime, convert(char(8), loginendtime, 108) as endtime from userlogin It returns two values: startime = 08:00:00 endtime = 18:30:00 Right now it is 10:40 am If I add a where clause I get no results when in...more >>

scripting all stored procs in db?
Posted by Daves at 9/19/2006 9:12:07 PM
hi, I need to synchronise local and remote database but only the stored procedures... Any ideas on how to collect all local ones and then create these on remote db? ...more >>

Need help understanding the statement
Posted by _adrian at 9/19/2006 5:46:50 PM
So, I have a View built where the criteria on a date field is as follows: > { fn NOW() } ..... but what its showing, is everthing from TOMORROW forward... I still need for it to display TODAY's information as well. What do I set in criteria to show this? > "yesterday" somehow??? ...more >>

MSDE conversion to SQL Server 2000
Posted by Mark at 9/19/2006 3:56:00 PM
I thought that when you installed SQL Server 2000 the installation automatically recognized an instance of MSDE and offered to upgrade you. Well, after having installed SQL Server 2000 it looks like my database still thinks that it's MSDE. At least I have both SQL Server 2000 and MSDE runnin...more >>

SQL for time
Posted by Alejandro at 9/19/2006 3:52:40 PM
Hi, I am using ASP/VB and MS SQL 2000 DB. I have a date field that just holds a 'time', say 8:00 am Then I have an ASP page where the user enters the time to compare, they will search for results that have 'time' field between say 7 am 10, in this case the record with 8:00 am should be di...more >>

Question on Limits
Posted by Thanas at 9/19/2006 8:42:50 AM
Is it fair to assume that the maxium number of Index on any given table in SQL Server 2005 is 249 and 1 index can be clusted for a maxium of 250? Is this count also the maxium number of relationships that can stem from that table. I am pretty sure it is, but I would like other experts to comme...more >>

how can i insert an access recordset to an sqlserver table
Posted by Sam at 9/19/2006 12:00:00 AM
how can i insert an access recordset to an sqlserver table? thanks ...more >>

Update only top 20 rows in a table
Posted by Daves at 9/19/2006 12:00:00 AM
how can I update only top 20 rows in a table? The table consists of PostlistID int, UserID int, Send_Begin datetime, Send_End datetime and what I'm doing is to sequentally -grab next 20 rows of recipients and set Send_Begin to GetDate() -send these users email -update Send_End to ...more >>

# of clients question
Posted by Marco at 9/18/2006 1:01:12 PM
Hi, we need to purchase SQL Server 2005 for a new hr system that is being installed. We are thinking of getting the Microsoft SQL Server Standard Edition 2005. It says that it comes with 1 server license and 5 user cal licenses. Forgive me for this really dumb question but what does the 5 u...more >>

T-SQL subquery: Every order that is not the latest within one day
Posted by George Shawn at 9/18/2006 6:58:11 AM
Hi, I am fairly new to T-SQL although I would not classify myself as a complete beginner. Last week I came across a strange business requirement for an application, and I am still trying to figure out how to address it in T-SQL. I need to pull a list of each customer's last order for a s...more >>

incompatible beta components
Posted by Daniel at 9/16/2006 7:53:12 PM
When I try to install SQL Server 2005 I get a message that says: SQL Server 2005 Setup has detected incompatible components from beta versions of Visual Studio, .NET Framework, or SQL Server 2005. Use Add and Remove Programs to remove these components. I haven't installed any beta softwar...more >>

exec sp to a variable
Posted by venkat at 9/15/2006 3:35:21 PM
Hi, I have a stored proc that returns an entryid. When i tried to execute the proc and assign to a variable in the sql analyzer, i am not getting the correct output in the variable For eg: In the make_user_signup stored proc, ...... ....... Select @entry_id as EntryID GO When i d...more >>

SQL script to change multiple fields.
Posted by Sam Commar at 9/15/2006 12:00:00 AM
I have a database where I need to change all period to post information back 1 year. There are approx 400 tables and most of them have a perpost field where the Period to post information is stored. I need to take this information back 12 months for all perpost fields. eg Perpost in APDOC ...more >>

ntext invalid for local variables
Posted by Jim in Arizona at 9/14/2006 2:40:48 PM
I got this error: Msg 2739, Level 16, State 1, Line 1 The text, ntext, and image data types are invalid for local variables. I wanted to create a stored procedure I could call from my web application to insert data into a table. If I can't use ntext as a variable for a stored procedure, the...more >>

Error 21002 when creating a new user
Posted by jayharris NO[at]SPAM gmail.com at 9/14/2006 8:16:00 AM
I'm trying to create a new user for my MSSQL database through the Enterprise Manager. In the SQL Server Login Properties dialog box, I type in for Name: "Ken", I choose SQL Server Authentication (Windows Authentication won't work) and type in my password. For the default Database, I choose "KenJ...more >>

Updating a Foreign Key Field
Posted by Bob Weiner at 9/13/2006 4:36:53 PM
I posted this a while back but without luck. I am just now getting back to what I started last month and still have this question. Basically, how do I add data to a field that is a foreign key? Thanks, bob "Bob Weiner" <bob@engr.uconn.edu> wrote in message news:EFC65156-1F16-47C8-B25C-A...more >>

Problem with a query
Posted by Christoph at 9/12/2006 5:55:47 PM
I have 2 tables. Simplified down to relevant fields. Table 1 id referenceName currentStatus Table 2 id table1Id transactionStatus There is a many to 1 relationship between table 2 and table 1. Table 1 holds 1 reference record and Table 2 can have multiple records, each having ...more >>

Installing SQL with WinXP Media Edition 2004
Posted by AJB at 9/11/2006 12:18:01 PM
I recently purchased Office 2003 professional that came with SQL, which I understand is needd if I want to use MS Outlook contact management. When attempting to install on my Dell PC, that came with XP Media Edition 2004 installed, the installation hangs up with two seconds to completion. ...more >>

Scheduled backups not working.
Posted by Paul J Tackett at 9/10/2006 6:35:01 PM
I am posting this in this group only because I don't see any other group that is specific to the issue (i.e. Management or Backup). Anywell, I have had three seperate maintenace plans set up on our SQL 2000 Standard box since we set it up in 2001. I am completely perplexed as to why every ...more >>

UNION Statement
Posted by Alejandro at 9/9/2006 12:54:52 PM
I am trying to make an SQL UNION Statement, but I get this error: Server: Msg 8163, Level 16, State 4, Line 1 The text, ntext, or image data type cannot be selected as DISTINCT. This is my sql: SELECT activities.activityid, activities.Actname, activities.actdesc,activities.schdemailon, a...more >>

Can we remove SQL server now?
Posted by Carmen Gauvin-O'Donnell at 9/9/2006 8:35:57 AM
Hi there! Our hotel accountant's computer used to use Great Plains for our hotel accounting. We also have SQLserver installed, which I guess had something to do with it... although I'm not sure We are no longer using Great Plains... is it safe to remove SQL server, or is it so intertwine...more >>


DevelopmentNow Blog