Viewing 15 posts - 7,021 through 7,035 (of 14,953 total)
J.Faehrmann (2/22/2010)
Gsquared your "ultimate version" is much fun to read!Now you only need to tell Jeff that you always code like that 😛
Won't work. Jeff knows my coding too...
February 22, 2010 at 9:34 am
Steve Jones - Editor (2/22/2010)
Gary Varga (2/22/2010)
...well that last candidate wasted my time!!!C'mon, I'm sure you'd end the interview after
DECLARE curNumbers CURSORHow long could that take?
Steve! C'mon! It...
February 22, 2010 at 9:27 am
Just to annoy Jeff, here's my "ultimate version":
SET NOCOUNT ON;
DECLARE @Table1 TABLE (
ID int IDENTITY PRIMARY KEY,
Number int);
DECLARE @Number INT;
SELECT @Number = 1;
WHILE @Number <= 100
BEGIN
INSERT INTO @Table1 (Number)
SELECT @Number
WHERE...
February 22, 2010 at 9:11 am
You can include any number of them in an index. You can't have them as the key columns for the index. It's really as simple as that.
Often, you're...
February 22, 2010 at 8:39 am
WinZip has a command-line utility that I've used for that before. Call that from the package, and it'll do the job nicely.
February 22, 2010 at 7:42 am
The text piece makes sense. My XQuery education has all been "trial and error", based on abysmal documentation and samples online and in BOL, so no great surprise that...
February 22, 2010 at 7:26 am
Paul White (2/22/2010)
Is it just me...or are the posted questions getting better?:smooooth:
Paul
Questions seem okay right now. Some of the answers have been abysmal recently. I guess it balances...
February 22, 2010 at 7:22 am
Paul White (2/21/2010)
GSquared (2/19/2010)
You'll need to use your column name instead of the XML variable, but it should do what you want.
A much more efficient query plan is produced from...
February 22, 2010 at 6:27 am
The reason Australians, et al, don't fall off is the same as for those of us in the northern hemisphere. Earth sucks!
February 22, 2010 at 6:24 am
Paul, that returns everything left of the colon. He asked for everything right of it.
February 22, 2010 at 6:21 am
The only thing I can think of is checking the update history. If you open Windows Update, you can get a fully history of installed updates. There may...
February 19, 2010 at 10:10 am
DECLARE @XML XML;
SELECT @XML =
'<ROOT>
<Customers>
<CustomerId>1111</CustomerId>
<CompanyName>Sean Chai</CompanyName>
<City>NY</City>
</Customers>
<Customers>
<CustomerId>1112</CustomerId>
<CompanyName>Tom Johnston</CompanyName>
<City>LA</City>
</Customers>
<Customers>
<CustomerId>1113</CustomerId>
<CompanyName>Institute of Art</CompanyName>
</Customers>
</ROOT>';
SELECT --R.Node.query('.'),
R.Node.query('.').value('(/Customers/CustomerId/.)[1]','varchar(100)') AS CustomerID,
R.Node.query('.').value('(/Customers/CompanyName/.)[1]','varchar(100)') AS CompanyName
FROM @XML.nodes('/ROOT/Customers') R(Node);
You'll need to use your column name instead of the XML variable, but it...
February 19, 2010 at 8:45 am
Considering that this is the MS Access forum for the site, I think it's perfectly acceptable to post questions and answers about Access here. 🙂
On the original question, I'd set...
February 19, 2010 at 8:36 am
Here's one way:
DECLARE @Text VARCHAR(100) = 'abc:xyz';
SELECT
REVERSE(
LEFT(
REVERSE(@Text),
CHARINDEX(':', REVERSE(@Text))-1));
February 19, 2010 at 6:50 am
SSIS packages don't have to be run as jobs. They can be run from the command line using dtexec.
February 19, 2010 at 6:31 am
Viewing 15 posts - 7,021 through 7,035 (of 14,953 total)