Viewing 15 posts - 18,511 through 18,525 (of 18,923 total)
Select distinct O.Name FROM dbo.SysComments C inner join dbo.SysObjects O on C.id = O.id where Text like '%Create view%' and O.XType = 'P' Order By O.Name
February 23, 2005 at 1:41 pm
sql = "SELECT Count(tblLinkRequest.LinkRequestID) AS CountOfLinkRequestID, tblLinkRequest.DateSent FROM tblLinkRequest GROUP BY tblLinkRequest.DateSent HAVING (((tblLinkRequest.DateSent)='" & Date() & "'));"
February 22, 2005 at 1:52 pm
1 - May I suggest that you normalize the design... it's not normal to see field1, field2 in a table definition.
2 - If you are only updating 1 table, I...
February 22, 2005 at 6:30 am
well if the procs work.. nothing. SysDepends is used when ou ask sql server to show the object dependencies (spa needs table1,view2 and vice-verca)... but this is not always...
February 21, 2005 at 12:43 pm
You seem to be close.. can you send the ddl with some sample data. Also what results you are expecting also with what you are getting. It'll be...
February 21, 2005 at 11:23 am
2 ways of doing this :
1-
create myproc2 @somevariable as int
as
select 1
go
Create myproc1
as
set @somevariable = 3
exec myproc2 @somevariable
go
2-
Create myproc1 @SomeVariable int output
as
set @somevariable = 3
go
create myproc2 @SomeVariable int
as
select 1
go
declare @var...
February 18, 2005 at 1:49 pm
1 - Why would you keep the same data in 2 different columns of the same data type?
2 - If you really want to do it you're gonna need a...
February 18, 2005 at 12:38 pm
I've never seen such a variable in Sql server. The only thing comparable to that would be the line number provided with sql server's error messages. But I...
February 18, 2005 at 12:33 pm
maybe a left() operation could be faster... but the question is : Is it always ok the truncate the decimal part or do you need to keep it if it's...
February 18, 2005 at 12:30 pm
That's a very good question... one that I can't answer. However is is considered best pratice to explicitly declare the cursor as local or global.
February 17, 2005 at 1:56 pm
tinyint = 1
smallint =2
int = 4
bigint = 8
bit = 1 (for the first 8, then 2 bytes from 9 to 16, 3 from 17 to 24...)
datetime = 8
smalldatetime =...
February 17, 2005 at 11:15 am
I've stopped counting how many times I forgot that
.
February 17, 2005 at 9:50 am
If you get an error near the order by, it means that you must give an alias name to the table :
WHERE m.fkCouncilID = @CouncilId
) dtYourNameOfChoice -- End of virtual...
February 17, 2005 at 9:25 am
If you can then normalize... it's always the best option on the long run. But that would also mean rebuilding everything in the application.
February 16, 2005 at 2:41 pm
Viewing 15 posts - 18,511 through 18,525 (of 18,923 total)