Archived Months
January 2003
March 2003
April 2003
May 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
November 2007
April 2008
August 2008
all groups > sql server programming > april 2005 > threads for saturday april 23

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

How to force CRUDs be handled through Stored Proc.
Posted by Lottoman2000 NEWBE at 4/23/2005 10:43:01 PM
Hi, If I want no one to be able to use then native select, delete, update etc.. and rather force the user to use stored procedure that I have included in the server. how to do that? Give: the database has 2- accounts...one limited privileges account for the users to use and one for me the o...more >>


Changing outer joins to inner join
Posted by Leila at 4/23/2005 8:57:59 PM
Hi, I have a main table that references many tables (something like Orders table, referencing Customers,Employees...). As an example, there are many orders that have Null value for their CustomerID therefore I need an Outer Join from Orders table to retrieve all rows. Now a View that joins Cus...more >>

sp_addlogin in a transaction
Posted by hwoess at 4/23/2005 8:56:56 PM
Hello, i have an application with own user management. The application users should be created as database users on sql server too. So i have a table for storing the application logins and if a new user is added then a trigger should add the same login name with database name as prefix as new ...more >>

Bind Image Data to PictureBox
Posted by PaulJS at 4/23/2005 6:22:02 PM
Hi, I'm just starting w/ VB.NET and want to find out how to bind an image from a field in a SQL Server database table to a PictureBox control. I am able to get data from the database into text boxes, etc., and to navigate and query to different records, but coming from the Access world, I'...more >>

Drop stored procedures by...
Posted by Christian Perthen at 4/23/2005 4:32:05 PM
Hi, How do I drop all stored procedures with the prefix of "www_". Basically, I need to add all new dev DB sprocs to our prod DB, but on the prod DB there are a whole bunch of old sprocs that needs to be dropped. Thanks in advance Christian ...more >>

reference to either of two tables
Posted by bbla32 NO[at]SPAM op.pl at 4/23/2005 2:31:30 PM
I must link from one table to either of two tables X & Y. I can store this link in columns: REF_X_ID NULLABLE REF_Y_ID NULLABLE plus a constraint to ensure only one REF_*_ID is set for a row OR in columns: REF_ID NOT NULL WHICH_TABLE i.e. store ID for both tables in only one colum...more >>

master detail query
Posted by Souris at 4/23/2005 2:15:01 PM
I have following table: CUSTOMERMASTER ACCOUNT_NUMBER char(10) PK ACCOUNT_NAME varchar(35) CUSTOMERDETAIL: ACCOUN_NUMBER char(10) PK UPDATEDATE datetime PK ADDRESS1 varchar(25) CITY varchar(10) ORDER ACCOUNT_NUMBER char(10) ...more >>

if then logic help with UNION views
Posted by at 4/23/2005 1:17:24 PM
Hi everyone, I need to add some logic to this TSQL statement that will replace a value if not null between the UNION of the views, otherwise use the current value. The following statement works to union the four views: SELECT organizationid, organization_name, businessunitid, busines...more >>



Prevent duplicate entries - back arrow on web
Posted by Sandy at 4/23/2005 1:00:01 PM
Hello - I have a user form that when "submit" is pressed, a stored procedure inserts the info into a table. Thought I was done with this part of the app and when testing, came across the delightful possibility that a user could click the back button and submit info any number of times...more >>

single quote in SQL statement
Posted by Souris at 4/23/2005 12:44:10 PM
SQL server uses single quote as string terminator. How can I write into my data? For example: "INSERT INTO MYTABLE SET COMMENTS = @MYCOMMENTS WHERE ACCOUNT_NUMBER = @MYACCOUNTNUMBER" When user has single quote in the comments the SQL fails. How can I avoid this situation? Any informat...more >>

DTS help please
Posted by Neither rhyme nor reason at 4/23/2005 12:05:02 PM
Hi, I am using a DTS package to "Export Data" between two databases, but in fact I want to be able to create a copy of the first db.. I am obviously a newbie, but is there a better way to create a duplicate or "mirror" of the main database and use a DTS package to automate the process? th...more >>

query tunning
Posted by Souris at 4/23/2005 11:34:01 AM
I have a dropdown box to running a query filtering mt records. The dropdown has 4 option: ALL, Close, Open, Pause. which filter the status of records. When I change dropdown from all to others works fine, but when I change from the Close, Open or Pause to All then it takes more than 10 seco...more >>

maintainance
Posted by Souris at 4/23/2005 9:44:01 AM
I have a SQL server database application, I just wnated to know that may I maintain the system while user use the sysetm? Should I maintain the system while all user off line? Any information is great appreciated, ...more >>

UPDATE NTEXT
Posted by Souris at 4/23/2005 9:41:02 AM
I have a table with ntext and nvarchar(35) fileds. COMMENTS ntext ADDRESS nvarchar(35) I wanted to update at same time. Do I need in 2 UPDATE statements? I use "UPDATE MYTABLE SET COMMENT = @MYCOMMENT, ADDRESS = @MHYADDRESS WHERE ACCOUNT_NUMBER = @MYACCOUNTNUMBER" do...more >>

DB Maintenenace Plan, Optimizations
Posted by AKing at 4/23/2005 8:48:01 AM
Hi All, I have a database that has not recieved any type of maintenance apart from daily backups. It has grown to over 30GB. I created some jobs to reindex tables that I thought were high activity. Query performance increased substantially but I believe it could be better. Database has ...more >>

store ZIP in BLOB?
Posted by nullref at 4/23/2005 6:17:19 AM
Hello - is it possible to store a zipped file (group of files) in a BLOB fields? ...more >>

can cursor be nested?
Posted by nonno at 4/23/2005 12:03:02 AM
Hi, I'm a newbie on using cursor. My question is if I create an update trigger that loop through the Inserted rows by a cursor, and inside the cursor loop, a stored procedure is executed, which contains a cursor loop too, any problem about it?...more >>

Simpler query
Posted by Jimmy at 4/23/2005 12:00:00 AM
Hi This query works but I wonder whether there is a more elegant way of constructing it: --PUBS database ----title(s) with max (sum( qty )) use pubs select * from titles t join ( select title_id , sum(qty) as som from sales group by title_id ) as somq on t.title_id=somq.title...more >>


DevelopmentNow Blog