Viewing 15 posts - 541 through 555 (of 2,171 total)
SELECTModules.ID.value('.', 'VARCHAR(20)') AS Module123 ,
Modules.ID.value('(../../Feature)[1]', 'VARCHAR(50)') AS Feature123,
Modules.ID.value('(../../Access)[1]', 'VARCHAR(50)') AS Access123
FROM@UserLFAMap_Rejected.nodes('/Modules/Module/ID') as Modules(ID)
January 8, 2009 at 2:07 am
See option 4 if you want to do pattern searches.
In your case, return all records starting with '1005..'
January 7, 2009 at 5:03 am
Thank you!
We were thinking the same idea, but you were faster with the response..
January 7, 2009 at 4:45 am
SELECT STR(Col1, 6, 0)
January 7, 2009 at 4:37 am
Neither one of them!
If you have '123000' in Column1 which is translated to '12300000000000'
and you search for '123' you will get a match, because '123' is also translated into '12300000000000'...
January 7, 2009 at 4:33 am
Partitioning only works with developer edition and enterprise edition.
See here http://weblogs.sqlteam.com/peterl/archive/2008/06/12/Horizontal-partitioning-Enterprise-style.aspx how you can manage that.
If you are not using Enterprise edition, not developer edition, see this blog post how...
January 7, 2009 at 4:28 am
Thanks!
If was indeed the < character mocking up.
Happy New Year everyone.
December 31, 2008 at 11:20 am
If you know the deepest level is three, you can use something like this
DECLARE@r XML
SET@r = '
<Reference>
<Basic>
<Book>A1.Hj1.JU9</Book>
</Basic>
<App>
...
December 31, 2008 at 4:41 am
SELECTSUM(st.nos) AS NumberOfSummary
FROMMachine AS m
INNER JOIN(
SELECTStoreID,
DATEDIFF(DAY, InDate, OutDate) * NumberofParts AS nos
FROMStore
WHEREcancelDate IS NULL
AND Indate IS NOT NULL
AND Outdate IS NOT NULL
AND NumberofParts IS NOT NULL
) AS st ON st.StoreID...
December 31, 2008 at 3:02 am
SELECTMAX(SIGN(col1)),
MAX(SIGN(col2)),
MAX(SIGN(col3))
December 31, 2008 at 2:52 am
Read and understand the code.
And as a sidenote, why would you like to store some data in local variables?
You do know an UPDATE can affect more than one record?
December 22, 2008 at 7:00 am
Which transaction level are you using?
Repeatable read?
December 22, 2008 at 6:36 am
exec master..xp_cmdshell 'bcp "SELECT au_fname, au_lname FROM pubs..authors ORDER BY au_lname" queryout c:\file.txt -T -S[BLRKEC24506\INFY] -c'
December 22, 2008 at 6:19 am
Viewing 15 posts - 541 through 555 (of 2,171 total)