Viewing 15 posts - 13,111 through 13,125 (of 13,457 total)
i recently had a view that gave different column definitions that if i ran the select portion of the view from getting the select via SP_HELPTEXT viewname.
as a result, i...
March 20, 2006 at 6:13 pm
perfect; that's why i love the forums here; somewhere, sometime, someone must have fixed a problem someone else is going to get;
way to go!
March 20, 2006 at 6:03 pm
you still need to use DTS, but instead of selecting a table, you can choose the second option "Use a query to specify the data to transfer"
in my example, i...
March 17, 2006 at 6:09 am
here's noeld's script witht he username pulled out as a parameter:in my example the username is 'hds'; i don't know how this will work for NT logins.
declare @cmd varchar(300)
declare...
March 15, 2006 at 6:09 am
you've got to look at the vb6 code; the issue is that you are referencing an object that hasn't been initialized; for example, if you create an ADODB.Connection but forgot...
March 15, 2006 at 5:50 am
here's an idea pending better definition of the WHERE statement: note that everything would be in foreign key hierachy as described previously.
this assumes that the foreign key column name is...
March 13, 2006 at 1:43 pm
i've got a decent idea how to do this, but what is your filter criteria?
i assume it is sometable.columname in(1,2,3) or sometable.columname < 3000 or something, and you want to...
March 13, 2006 at 1:17 pm
the DDL helps a lot, in this case i think i'd need row values to extrapolate this correctly.
i think this group by statement would give you the question as well...
March 13, 2006 at 8:33 am
error trapping in TSQL is pretty limited;
if an error is level 16 or above(foreign key constraint violations, primary key, etc), they raise an error that cannot be trapped in TSQL,...
March 13, 2006 at 8:21 am
there is a stored procedure you can use to get all the tablenames in hierarchy order.
here's an example:
create table #tuser (type int, oname varchar(517), owner varchar(517), seq int)
insert #tuser exec...
March 12, 2006 at 6:51 pm
you can do it in a single with something like this:
declare @somekey int
set @somekey=1
if exists(select * from ItemTableOne where someval=@somekey)
select * from ItemTableOne where someval=@somekey
else
select...
March 10, 2006 at 11:12 am
nothing predefined, but you can easily take Tyson's example and create a stored proc witht eh same code.
March 9, 2006 at 6:21 am
if you change a .config file or .aspx, no recompilation is needed. if you change a .vb file, then yess you have to recompile.
March 8, 2006 at 9:24 pm
i'm guessing table joining and reserved word issues here?
does this look a little better?
SELECT ICDCODE FROM DIAGS
INNER JOIN [PROCEDURE] ON DIAGS.DIAGID = Procedure.DIAGID
March 8, 2006 at 9:21 pm
i think the issue is permissions. the user running the app does not have write permissions to HKey LocalMachine;
When you type in an instance in the SQL manager, it tries...
March 8, 2006 at 9:09 pm
Viewing 15 posts - 13,111 through 13,125 (of 13,457 total)