Viewing 15 posts - 1,516 through 1,530 (of 1,538 total)
You cannot create indexed view if your view definition contains UNION.
You can use UNION ALL instead of UNION as UNION does a select distinct on the cumulative resultset.
In UNION...
December 13, 2008 at 7:46 am
Assuming your table (TestTable) has two columns
FileName varchar(255)
ExternalFile varbinary
to store the file within the table, you'd write something like this..
Insert into TestTable(FileName , ExternalFile)
Select 'abc', BulkColumn FROM OPENROWSET(
Bulk N'C:\FileLocation\abc.jpg',...
December 13, 2008 at 7:27 am
You can also create a dummy database with the same name as your original database, shut down sql server service and overwrite your data files with original files. Restart sql...
December 13, 2008 at 7:08 am
A user belonging to the windows administrator group will be able to connect to the server using any authentication mode.
You can also refer to http://msdn.microsoft.com/en-us/library/aa905171(SQL.80).aspx on authentication modes.
December 13, 2008 at 6:58 am
refer this part of code
AND D.TitleReferenceNumber like
CASE WHEN CHARINDEX(';',T.DTI_SHORT_LEGAL_DISPLY_TEXT) =...
December 12, 2008 at 12:40 pm
Can u check the ascii code of the last character?
select ascii(right(companyinfo,1)) from company
if its 32, it's a space and should be removed using rtrim
if its something else, you need to...
December 12, 2008 at 12:03 pm
select name from sysobjects where xtype='U'
Declare @tab1 varchar(255)
Declare Space_Cursor Cursor for
select name from sysobjects where xtype='U'
open space_cursor
fetch next from space_cursor into @Tab1
while @@fetch_status=0
Begin
PRINT sp_spaceused @tab1
fetch next from space_cursor...
December 12, 2008 at 10:54 am
i just copied/pasted that code.
use filepath of your choice
December 12, 2008 at 10:19 am
use sp_helpfile to determine the filenames and locations of database and log files.
May be the tempdb is on your C:
or logfiles from your production database are kept on C:
To move...
December 12, 2008 at 10:17 am
refer to the following msdn link.
http://msdn.microsoft.com/en-us/library/aa337114(SQL.90).aspx
December 12, 2008 at 9:39 am
We do need this trigger to work recurisvely but obviously I don't have something in the trigger right. How can I determine what line it's stopping on?
This is happening at...
December 12, 2008 at 9:31 am
can u run this query and let us know the results..
select name, xtype from sysobjects where name='x_old'
December 12, 2008 at 1:02 am
The error message is self-explanatory. The new owner already has an object with the same name. in your case there is already an object x_old owned by dbo.
December 12, 2008 at 12:07 am
If your concern is to move the incremental data from your production server to the secondary server, you can setup log-shipping where all the changes are applied to the secondary...
December 11, 2008 at 11:57 pm
In Full Mode the log is backed up frequently which keeps its size down. Is this the only reason for doing frequent backups?
You take backup of the log files to...
December 11, 2008 at 10:56 am
Viewing 15 posts - 1,516 through 1,530 (of 1,538 total)