Viewing 15 posts - 871 through 885 (of 920 total)
quote:
is there any advantage to useselect @SchoolNum = '190'
instead of
set @SchoolNum = '190'
They're equivalent. ...
September 25, 2003 at 6:28 am
That sound like a job for a CASE expression.
--Jonathan
September 24, 2003 at 6:36 pm
I don't understand. How do you know if a NULL value is to represent keeping the existing value or changing the existing value to NULL? Aren't you asking one...
September 24, 2003 at 4:02 pm
I STRONGLY suggest you not hardcode the lists of SchoolNums into a stored procedure. If you cannot make this information an attribute of another existing (Schools?) table, then create...
September 24, 2003 at 3:47 pm
sp_executesql supports parameters:
DECLARE @MyId int, @Questions sysname, @myName varchar(20), @sql nvarchar(300)
SELECT @Questions = 'Questions', @myName = 'Sql Server'
SET @sql = N'SELECT @TheId = QuestID FROM '...
September 24, 2003 at 3:09 pm
quote:
create PROCEDURE test_sp@SchoolNum int=NULL --sorry I like integer instead nvarchar(3). I think it is more efficient.
AS
if (@SchoolNum is null)
Begin
select @SchoolNum...
September 24, 2003 at 2:38 pm
Easy enough with SQL-DMO...
Sub DropCreateIndexes(Server As String, DB As String)
Dim objServer As New SQLDMO.SQLServer
Dim objDatabase As New SQLDMO.Database
Dim...
September 24, 2003 at 1:18 pm
quote:
Am I missing something obvious, or is that a poorly documented feature?
Not very obvious, but...
September 24, 2003 at 12:44 pm
CREATE PROCEDURE InstrumentStudentAssign_sp
@SchoolNum nvarchar(3) = N'190'
AS
But if this is an integer, why have you declared it nvarchar(3)?
--Jonathan
September 24, 2003 at 12:34 pm
If you're determined to use a SAN, then get their sizing utility from the SAN vendor.
Unless the databases are not subject to concurrent access, put OLTP and DSS databases on...
September 24, 2003 at 10:46 am
Isn't this just a classic case of using first normal form with a many-to many relation?
Create a States table with a primary key (tinyint IDENTITY?) and description for each state....
September 24, 2003 at 9:13 am
If you've got a string, then you'll need a hack:
http://vyaskn.tripod.com/passing_arrays_to_stored_procedures.htm
If the data is not in a string, don't make a string for this purpose. Using it as...
September 24, 2003 at 8:26 am
quote:
I was wondering if splitting a RAID5 array (6x18Gb 10k) into 2 channels is good or bad or doesn't matter.
September 24, 2003 at 7:38 am
With SQL Server 2000, you could create an instance for just this one database.
Why is a user in EM? Perhaps you could whip up a utility using...
September 24, 2003 at 5:53 am
Viewing 15 posts - 871 through 885 (of 920 total)