Viewing 15 posts - 3,181 through 3,195 (of 3,543 total)
Also consider placement, security and firewall(s).
Do you realy want your Internet service accessing your sql server on your internal domain and your internal DB's?
We have internal sql server, another in...
July 10, 2003 at 6:13 am
I think your solution boils down to basic design and the use of one-to-one, one-to-many or many-to-many relationships.
If a person or a company has only one address then the relationships...
July 9, 2003 at 3:31 am
Jeremy fyi,
To use dynamic sql you have to create a variable containg the sql and use sp_execuetsql
ie
declare @n int
declare @sql nvarchar(1000)
set @n = 76
set @sql...
July 8, 2003 at 6:50 am
For a solution without cursors
create the temp table (as above)
select into the temp table (as per your select for the first cursor)
update the temp table using
July 8, 2003 at 6:29 am
Alan,
If you using the code as is, ie no error trapping, then it is unlikely that permissions being the problem as by default errors are shown. When you see the...
July 7, 2003 at 7:25 am
Mine was a serious answer. I have found, via this forum, that I do too much by assumption and default which can lead to inefficiency.
All I was trying to point...
July 7, 2003 at 6:39 am
Hi Frank,
Yes, laziness on my part. If you leave off 'Server.' it is assumed (bad practice ).
I know ASSuME makes an ASS of you and ME and...
July 7, 2003 at 6:28 am
Many Congrats Frank,
Don't forget good procedure
DROP Dirty_Nappy
GO
SELECT Clean_Nappy FROM Nappy_Pile WHERE COUNT(Clean_Nappy) > 0
INSERT Baby INTO Clean_Nappy
GRANT ALL Smiles to Baby
GO
July 7, 2003 at 5:50 am
Try
<%
Dim Conn
Dim Com
Dim Rs
set conn = CreateObject("ADODB.Connection")
set Com = CreateObject("ADODB.command")
set Rs = CreateObject("ADODB.recordset")
conn.provider="SQLOLEDB"
conn.connectionstring="Data Source=(local); initial catalog=Pubs; user id=sa;...
July 7, 2003 at 5:30 am
Do you mean this
SELECT Distinct
TOP 100 PERCENT [vinnumber], CAST(REPLACE(LEFT([vinnumber], 8), ' ', '_') AS CHAR(8)) AS [Wild Card]
Edited by - davidburrows on...
July 4, 2003 at 7:17 am
select @na = @na + cast([na] as varchar) + ',' FROM [xsisi]
Would'nt it be better to rewrite the query thus
UPDATE...
July 4, 2003 at 6:56 am
On desktop create new shortcut and type in the following
isql -S server -U loginid -P password -d database -q "exec procname"
this will run in...
July 4, 2003 at 6:26 am
Or
SELECT CONTACT_ID,
SUM(CASE WHEN TRX_YEAR = YEAR(GETDATE()) THEN AMOUNT ELSE 0 END) AS 'YTD AMOUNT',
SUM(CASE WHEN TRX_YEAR = YEAR(GETDATE())-1 THEN AMOUNT ELSE 0 END)...
July 4, 2003 at 6:04 am
Viewing 15 posts - 3,181 through 3,195 (of 3,543 total)