|
That's real gem isn't it
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I was tempted to reply with the question "how long is a piece of string" but I'm absolutely sure he would understand the reference.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: "how long is a piece of string"
[Obi-wan Kenobi voice over] Depends on the point of view
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
does SQL server 2005 include query analyzer? I installed it and couldn't find the query analyzer. anyone knows where I can download SQL query analyzer? many thanks..
|
|
|
|
|
It's still there. Just not called Query Analyzer anymore. Are you using SQL Management Studio?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
yes, i am using that, so as you said, what is the query analyzer called in SQL Server management studio? thanks....
|
|
|
|
|
It should be in the query editor toolbar under Display Estimated Execution Plan, IIRC...
You might want to click on the button that says Include In Execution Plan, as well. This will give you query stats along side with any query results.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
|
You're welcome.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hey,
So I am trying to get the Highest MenuOrder Value there is increment that by one and then use that value to insert a new object in with the next highest menu order
My attempt so far is as so:
Declare @MenuSeed as int
Select @MenuSeed = Top(1) MenuOrder
From Pages
Order By MenuOrder DESC
And of course that doesn't work, but I am kinda lost on what to do here, can anyone shed some light?
Thanks Alot
-Seth
|
|
|
|
|
Declare @MenuSeed as int<br />
<br />
Set @MenuSeed = (select max(MenuOrder) From PagesOrder)
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
SET @MenuSeed = (Select Top 1 MenuOrder From Pages Order By MenuOrder DESC )
OR
Select Top 1 @MenuSeed = MenuOrder From Pages Order By MenuOrder DESC
Please... SAVE my time by rating the posts that you read!
There are 10 kinds of people in the world: those who understand binary and those who don't.
|
|
|
|
|
While importing data from a text file using the wizard i get the error
Invalid character value for cast specification
There's a bad record in the file... but the file is huge so it's nearly impossible to find it by hand. Is there a way to import the data and ignore records that are malformed or the data isn't in the data type it should be?
TIA
|
|
|
|
|
With SQL Server SSIS add a data transformation task and add a datasource (where the bad data is) and a destination (scrubbed data). drag green arrow from source to destination.
Add a second destination and set on failure of first destination to redirect to second (red arrow). You can use a flat file if you want.
|
|
|
|
|
I NEVER use transforms in the ETL layer. I load the data in a table using large varchar fields and use a procedure to do the transforms. This maybe (is) old fashioned but I find I have much better control over the data using a procedure. I can manage the exceptions more to my liking and the bloody thing doesn't break in the middle of the load.
One reason I dislike SSIS and hate Biztalk is the complexity they instill into a basically simple operation.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
One of our clients have recently had one of their two servers changed. The server that got changed contained Active Directory with all the permissions for all users. The other server has MS SQL Server 2005 installed.
Since the server change, users cannot use the Management Studio from their client machines to log on to SQL Server using Windows Authentication. I'm presuming that this is because since the server change, there is some sort of security ID which has changed meaning that the SQL Server doesn't recognise it even though ther name of the new server is the same and the name of the domain is still the same.
My question is this, what can I do about this??
Thanks in advance for any help.
|
|
|
|
|
Look at the system, security and application logs on SQL Server. Look for security failures and dns errors. yell at the admins.
rinse and repeat..
|
|
|
|
|
Have been doing some research and it seems that I need to update the SIDs in the master database for each login to match those of the newly created users in Active Directory.
If anyone knows of a way to do this then it would be appreciated. Thanks.
|
|
|
|
|
Hi,
Sounds like some or all your logins have orphaned. Check if this is true with sp_validatelogins
Mika
|
|
|
|
|
hi,
I don´t know if i can perform this in sql.
I trigger one particular store_procedure, (for exemple select * from tablename), but i want to focus a particular row, or make the scroll center that row.
Well i think i have to write a procedure with a parameter (id).
But how can a perform this?! if possible
nelsonpaixao@yahoo.com.br
|
|
|
|
|
nelsonpaixao wrote: i want to focus a particular row, or make the scroll center that row
Data presentation detail like that is not what the database engine does. You are asking about something that happens, or should be happening, in the presentation layer.
|
|
|
|
|
IS batch_control an automatic table in SQL Server database? can anyone tell me where I can find the knowledge about it? Thanks very much.....
|
|
|
|
|
Hi,
doesn't sound like SQL Server's own table to me. In what database this table resides and under what schema?
Mika
|
|
|
|
|
I saw that included in some stored procedures in my company's DB, is that user-defined table or something else? cause I tried to search for that information online, couldn't get either...
|
|
|
|
|
I would guess that it's user defined. Especially if it resides in user database and not under system schemas, it's defenitely user defined (or by an application other that sql server).
Mika
|
|
|
|