Viewing 15 posts - 76 through 90 (of 119 total)
How are you importing this into SQL?
Matt
June 18, 2008 at 2:06 pm
This should do it all in one query..
select con.contact, count(con.contact) as CountOfContact from
(select studentno, count(contactid) as Contact
from StudentContact
group by studentno) con
group by con.contact
order by count(con.contact) desc
Hope this is what you...
June 18, 2008 at 2:02 pm
Okay, so why dont you install the client tools on your local machine?
Matt
June 18, 2008 at 1:50 pm
When you ran the SQL Server setup program did you select the option to install client tools?
Thats why you dont have SQL Server Management Studio.
Run the setup program again...
June 18, 2008 at 1:05 pm
Im afraid so.
And i think the TIMESTAMP data type name is a bit misleading.
Matt.
June 17, 2008 at 3:34 am
The timestamp data type doesnt preserve time or date data. It is for versioning a row and is automatically populated when an insert or update takes place.
Take a look at...
June 17, 2008 at 1:11 am
The following should do the trick:
select convert(datetime, convert(varchar(4), birthyear) + '-' + convert(varchar(2), birthmonth) + '-' + convert(varchar(2), birthday))
Matt.
May 27, 2008 at 2:42 pm
Thankyou Hanshi.
Ive always wondered what the N was for. Thanks.
Matt.
May 27, 2008 at 2:08 am
The answer says it's cast as nvarchar(4000) initially, but i too dont see how?
Am i missing something, or is there a typo?
Matt
May 27, 2008 at 1:12 am
Are you restarting the service from withing SSMS?
Are you a domain/local administrator on the server?
Matt
May 22, 2008 at 3:35 am
Paul,
Try this
create procedure dbo.myTestProc with encryption
....
That should encrypt the actual contents of the stored proc so the sql behind it cant be viewed. Obviously make sure this is only...
May 22, 2008 at 3:22 am
I think your best bet for this would be to create some Server DDL Triggers that monitor the creating/deletion of logins, tables and most objects.
The following MSDN article should help:...
May 22, 2008 at 2:42 am
How about using dynamic sql to generage your query within the loop?
For example:
loop
begin
set @sql_str='select * from mydatabase.dbo.mytable'
exec sp_executesql @sql_str
end
Or have i misunderstood your question?
Matt
May 22, 2008 at 2:38 am
Maybe this should be moved to the correct forum.
Out of curiosity, what is UMS ?
Matt.
May 21, 2008 at 9:03 am
Viewing 15 posts - 76 through 90 (of 119 total)