Viewing 15 posts - 76 through 90 (of 330 total)
Jeff Moden (10/2/2009)
October 2, 2009 at 12:52 pm
I would go for an inline table function - especially if dealing with small ranges much higher up the range (for example checking 12 digit account numbers for sequence breaks)....
October 2, 2009 at 11:57 am
As Richard says (and I did in a previous post), CommandBehaviour.SchemaOnly does SET FMTONLY ON behind the scenes for you.
Glad it will save you some work - just remember -...
October 1, 2009 at 7:56 am
Try this
With Hierarchy (ParentID, AMIID, MenuText, ParentMenuText, RootMenuText, level, DisplayOrder, URL, ToolTip, Display, NewWindow, SortKey)
As (Select ParentID, AMIID, MenuText, MenuText,...
October 1, 2009 at 2:54 am
Richard
Have some code. The important bit is the CommandBehaviour.SchemaOnly parameter to the SqlCommand.ExecuteReader call.
Also note that SqlDataReader.GetSchemaTable() will return you a lot more information.
Thirdly - note that, as discussed -...
October 1, 2009 at 1:22 am
Sergiy (9/30/2009)
You provided some kind of solution?Did I miss something?
?? If you're asking did I give enough info to the OP to achieve what was asked for, then yes. If...
September 30, 2009 at 4:28 pm
Wow, you need to have some pork chops and chill a bit. Breathe deeply, it's only a forum. By the way, empty has a p in it 😀 Sorry couldn't...
September 30, 2009 at 8:57 am
I'd have to agree, I must say. CLR is the way to go with this one. 🙂
September 30, 2009 at 2:20 am
Sergiy (9/29/2009)
That's why SQL Server as well as any other service has no means to tell what procedures will return before the output is actually returned.
Apart from SET FMTONLY ON,...
September 30, 2009 at 1:40 am
Here's a link to the member list
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldatareader_members.aspx
September 29, 2009 at 4:03 pm
I'm sure all of that is possible.
Check out System.Data.SqlClient.SqlDataReader - have a look at the members FieldCount, GetDataTypeName and GetFieldType, GetName.
They're also pretty much wrapped up into the call GetSchemaTable...
September 29, 2009 at 4:02 pm
I'm sorry i've looked at it for a few minutes now and I can't work out what it is you're trying to do - probably cos i'm not feeling 100%....
September 29, 2009 at 3:49 pm
Garadin
If you're using say SqlClient under .NET then that gives you meta-data irrespective of the presence of rows.
You can move from one result set to the next with NextResult().
Sorry for...
September 29, 2009 at 3:46 pm
Are you opening an XML file, or consuming a web service?
What you want to do is program it in C# or VB.NET as a CLR Stored Procedure.
There's lots of help...
September 29, 2009 at 12:53 pm
Viewing 15 posts - 76 through 90 (of 330 total)