Viewing 15 posts - 13,141 through 13,155 (of 13,445 total)
you can't truncate a table that has a foreign key reference.
also, if you delete from the tables out of order, you'll end up with errors as well.
another thing to consider...
January 18, 2006 at 2:42 pm
i think the only way to do this is to use a function, and have the function return ONE column with all the values in a comma delimited format:
CREATE FUNCTION...
January 18, 2006 at 9:22 am
without using e3nterprise manager, here is a copy and paste solution:
declare
@isql varchar(2000),
@procname varchar(64)
create table #procResults(procid int identity(1,1) primary key,ProcText varchar(4000) )
declare c1 cursor for select name from...
January 17, 2006 at 1:19 pm
dumb question from someone less experienced....if you have a small database, say 300 meg...your server most likely has multiple gigs of ram...couldn't you pin every table and achieve a performance...
January 17, 2006 at 6:15 am
folowing some of the links there that have answers says that your MDAC is out of date and that you may be missing a .rll file.
HTH
\
January 16, 2006 at 1:33 pm
did you just post real client data credit cards on a forum? i hope the data you pasted is fake developer data.
edit the post and remove the data right away.
January 16, 2006 at 11:28 am
it's ridiculously easy....use the exact same script, but rename the output to .xls when you save it.
excel will automatically translate HTML to the proper format when it opens the file.
[post...
January 16, 2006 at 11:21 am
SQLRecon is excellent for this:
http://www.specialopssecurity.com/labs/sqlrecon/
it finds all SQL Server instances by scanning all sorts of methods in order to give a comprehensive list. it's also free.
January 16, 2006 at 11:19 am
can you use an outer procedure to determine which database to use?
ie
CREATE procedure pr_dbSwitch as(@dbname) as
declare @sql varchar(2000)
select @isql='USE @dbname pr_yourprocedure'
select @isql = replace(@isql,'@dbname',@dbname)
print @isql
exec(@isql)
that way your proc is not dynamic,...
January 14, 2006 at 7:04 am
i've seen programs which generate code based on user selections build queries like this....i would guess just running it thru query analyzer and having the show plan on would let...
January 14, 2006 at 6:55 am
We had a similar kind of situation with a database software package; the vendor does not want clients to alter the database schema, and the knee jerk reaction was replication...
January 12, 2006 at 11:35 am
like Mike says, it depends on your tolerance for differences between the two database....log shipping is free, but your backup database is out of sync by the xminutes you have...
January 12, 2006 at 10:03 am
additionally, even though two connections might create a temp table witht he same name, #temp, they are actually stored as two different sysobjects in the tempdb database;
here's an example for...
January 12, 2006 at 8:18 am
the case returns one of two values, 0 or the calculation.
you could replace it with the same functionality:
column1=isnull(SUM(ABS(t.Amount)*c.CalcInvestedAmount) ,0)
a little less verbose, but with the same results.
December 23, 2005 at 2:04 pm
here's a real basic example from vb6: hope it helps. you don't save the file in any format...you actually save the file, in binary format, within the database using the...
December 23, 2005 at 11:02 am
Viewing 15 posts - 13,141 through 13,155 (of 13,445 total)