Viewing 15 posts - 436 through 450 (of 1,109 total)
It is also fascinating that you can change the font of the output based on the string you are displaying:
CREATE TABLE foo (a INT, c NVARCHAR(20), d INT)
INSERT INTO...
February 18, 2008 at 2:36 am
Bryansky (2/17/2008)
anyone encountered this behavior:?
When select * from syslogins, and in text result, the password field has some Chinese character, not in HEX format like in sysxlogins. Any ideas...
February 18, 2008 at 1:58 am
The following is ugly, but could do it:
SELECT a.ID1
, a.ID2
, a.CreateDate
FROM table1 a
WHERE ...
February 15, 2008 at 9:13 am
eleanor.vanace (2/15/2008)
Also, the last END statement had to be removed in order to pass the syntax...
February 15, 2008 at 8:39 am
try
CREATE TRIGGER [APPROVAL2] ON dbo.Results_Appr1
FOR INSERT
AS
IF ( SELECT COUNT(*)
FROM inserted
...
February 15, 2008 at 8:14 am
faheemlatif (2/15/2008)
Hi,Please run this script on your DB, And sleep without tention-:)
--******************************************
exec sp_dboption 'DB_NAME','trunc. log on chkpt.','ON'
exec sp_dboption 'DB_NAME','AUTOSHRINK','ON'
checkpoint
BACKUP LOG DB_NAME WITH TRUNCATE_ONLY
DBCC SHRINKDATABASE (DB_NAME)
checkpoint
exec sp_spaceused
--******************************************
Ouch!!! I would...
February 15, 2008 at 4:01 am
Performance here will be the same (but you have tiny tables, no indexes, ...) In both cases there will be a full table scan, ...
If you are interested in exploring...
February 15, 2008 at 1:51 am
Do you get the print message?
When you do not get the database name, what is the content of the eventdata.
On my test server your approach seems to works well.
It is...
February 14, 2008 at 8:23 am
pprajapati (2/14/2008)
But i requite excat querysuppose i have to download file from
to directory c:\files\pwf.pdf...
..
You could use the ftp provided with Windows, in this case create a file foo.ftp...
February 14, 2008 at 6:48 am
Alan G (2/14/2008)
Hi, If you use ANSI joins in a select statement, are there any occasions when you would still need to use a WHERE clause?Thanks.
It is easier to show...
February 14, 2008 at 5:04 am
pprajapati (2/14/2008)
How can i download any file like zip or pdf or txt or from internertusing TSQL or DTS Package...
In T-SQL you could use xp_cmdshell to execute a command...
February 14, 2008 at 4:13 am
Martin Larsson (2/14/2008)
I can't seem to find a way to "join" two tables in one result set. It's kind of difficult to explain this, but I will try...
I've got two...
February 14, 2008 at 4:03 am
select top(12) identity(int, 0,1) AS nr into #tally from sys.all_objects
DECLARE @startDate DATETIME
DECLARE @endDate DATETIME
SELECT @startDate = '03/03/2007'
, @endDate = '08/08/2007'
-- set it...
February 13, 2008 at 5:31 am
sankarnarayanan.s (2/13/2008)
My 1st question.I want to Create User for Particular Database.
How can I create New user?
2nd Question
How to get the User names List?
On SQL Server 2000 use sp_adduser (see http://technet.microsoft.com/en-us/library/ms181422.aspx)
On...
February 13, 2008 at 5:12 am
For constraints, indexes and foreign keys you can use sp_rename. Since these objects are rarely referenced by name in other textual database objects, and since they are mostly not textual...
February 11, 2008 at 5:08 am
Viewing 15 posts - 436 through 450 (of 1,109 total)