|
sssssssss.......
i aslo done like this ....
i created usrname , pswd for that ...
iam getting the query enalizer ...
but wer shud i get Enterprise manager in this scenario ...
|
|
|
|
|
Which version of SQL Server did you install?
(check if service is stoped)
I Love SQL
|
|
|
|
|
hope you might have installed SQL Server with Windows Authentication.
if so, reinstall in mixed mode.
Regards
KP
|
|
|
|
|
k ill do it now...
Thanks for ur help...
if i face any prob ill let u kw..
bye ...
naresh
|
|
|
|
|
And please - don't use textspeak. It's very very irritating because I have to spend time inserting consonants and vowels into your sentences in order for them to make any sense.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Do any one know how to display data from the data base by extracting it out using the unique id of the database. I wan to display the whole row of information of that unique id.
calvin
|
|
|
|
|
Hi All ,
I am planning to write an Article on how to use the Sub Sonic(subsonic) Data Access layer Generator.
with neat illustrations.
But I want to know how many are really interested in it as quite a lot of tutorials are available on the Internet.
If a majority are interested then for sure I will write an article.
Thank You ,
Warm Regards,
Nikhil Pagidala
Happy Programming!
Regards,
Nikhil Pagidala
|
|
|
|
|
hello
i was connect to oracle database using oracleadapter and generate for this adapter a dataset ,the dataset contain data from database when i display it on datagride but it dose not contain anything on the crystal report ????!!!!!
i write these linwe on the load form event
oraqcleadapter1.fill( dataset1 )
and i use .NET2005
how i can solve this problem ????? !!!!!!!!!!!!!!!!!!!
|
|
|
|
|
Stick to the C# or VB forum. Pick either one of those two and stick with the replies that come, if any.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
he's a frequent cross poster and must be punished.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
leckey wrote: he's a frequent cross poster and must be punished
I am starting to get very cranky about these cross posts the past few weeks and idiotic questions, so it time to ...
[Emeril voice] Kick it up a notch [/Emeril voice]
"It's only that urgent if you have to pee.." - Dave Kreskowiak
|
|
|
|
|
How do I change one format column to another format?.Please any help is appreciated
Sabina
|
|
|
|
|
do mean changing one column datatype format to antoher datatype format
then
alter table tablename alter column columnname newdatatype
example:
sno is int then changing int to float
alter table student alter column sno float
|
|
|
|
|
Where from can I get my data faster for viewing it throw Report in SSRS: from xml or from Excel-file?
Anyone!!!!!!!!!!!!
|
|
|
|
|
I trying to make my demo for
"Take Data Offline Using Microsoft Synchronization Services for ADO.NET"
I am using SQL Server 2005 on a server side and SQl Express on Client side, I have created my "Orcast" Database on both side ( Server as well as Client). but when I click on "Synchronize" but it will not work. In Demo they are used one "pub.sdf" file on client side , & I have created Database on client side ,they have given Path of that file , I have to give database connection string Like (its for client)
"Data Source=USIL-1;Initial Catalog=Orcast;Integrated Security=True";
it's urgent
Regards
Vikas Shirsath
|
|
|
|
|
i have some errors while implementing stored procedure for sql server 2005 in my web form which i have design using vb dot net 2005. my code is like this:
i have made stored procedure like this:
ALTER PROCEDURE UpdateMemberInfo
@FName varchar(50),
@LName varchar(50),
@Password varchar(50),
@MemberName varchar(50)
AS
update T_Members set FirstName = @FName,LastName = @LName ,Password = @Password where MemberName = @MemberName
RETURN
Now i have to call this stored procedure in the click event of the button. So, i put the code like this in the button:
co.startconn()
cmd = New SqlCommand("UpdateMemberInfo", co.oConn)
cmd.CommandType = Data.CommandType.StoredProcedure
Try
para = New SqlParameter("@FName", fname)
cmd.Parameters.Add(para)
para = New SqlParameter("@LName", lname)
cmd.Parameters.Add(para)
para = New SqlParameter("@Password", pass)
cmd.Parameters.Add(para)
Catch
Response.Write(Err.Description)
End Try
Try
cmd.ExecuteNonQuery()
Catch
Response.Write(Err.Description)
End Try
But still there is error like this:
Procedure or function 'UpdateMemberInfo' expects parameter '@FName', which was not supplied.
suchitamanandhar@hotmail.com
|
|
|
|
|
You haven't set the SqlDbType or the size for any of your parameters. You must set them.
Plus, you haven't actually assigned any values to the parameters, and you haven't actually put any condition on your update statement so all rows will be affected.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
create command object cmd
Cmd.parameter.add("@FName",SqlDB.Nvarchar).value =fname(you value)
Cmd.parameter.add("@LName",SqlDB.Nvarchar).value =Lname(you value)
.
.
then execute you command
cmd.ExecuteNonQuery();
Regards
Vikas Shirsath
|
|
|
|
|
Can somebody help to correct my SQL statement below with the correct transaction syntax?
<br />
BEGIN TRANSACTION<br />
<br />
DECLARE @TMPKEY varchar(10) <br />
DECLARE @NEWKEY varchar(10)<br />
<br />
SET @TMPKEY = '0707436'<br />
SET @NEWKEY = '070700058'<br />
<br />
Insert Into nnccdtrequestDetail<br />
(Requestno,RequestItemNo,DetailStatus)<br />
select @NEWKEY,RequestItemNo,DetailStatus from nnccdtrequestdetail<br />
Where RequestNo = @TMPKEY<br />
<br />
IF @@TRANCOUNT = 1<br />
COMMIT TRANSACTION<br />
<br />
IF @@TRANCOUNT <> 1<br />
ROLLBACK TRANSACTION
Dabsukol
|
|
|
|
|
The second @@TRANCOUNT statement is a problem. Basically, the @@Trancount tells you the active number of connections that are present on the connection.
COMMIT TRANSACTION decrements the transaction count, so if you have 1 active transaction before the commit, you have 0 active transactions after. As you can see, this is where your problem occurs - you are testing @@TRANCOUNT <> 1 to call rollback transaction when it is now 0. In otherwords, the rollback will always be attempted.
I would be tempted to rewrite this section as:
Insert Into nnccdtrequestDetail
(Requestno,RequestItemNo,DetailStatus)
select @NEWKEY,RequestItemNo,DetailStatus from nnccdtrequestdetail
Where RequestNo = @TMPKEY
IF @@ERROR = 0
BEGIN
-- There is no error here.
IF @@TRANCOUNT = 1
BEGIN
COMMIT TRANSACTION
END
END
ELSE
BEGIN
-- If I reach this point, there has been an error.
IF @@TRANCOUNT = 1
BEGIN
ROLLBACK TRANSACTION
END
END Actually, I would normally not use the @@TRANCOUNT method because I match BEGIN TRANSACTION statements with the relevant closing transaction statements.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
@@TRANCOUNT is useful if you've got nested transactions, because ROLLBACK TRANSACTION does not roll back to the last BEGIN TRANSACTION but to the first BEGIN TRANSACTION. A nested COMMIT TRANSACTION only decrements @@TRANCOUNT, only when @@TRANCOUNT is reduced to zero by a COMMIT TRANSACTION does the overall transaction get committed.
This surprises a lot of people.
If you need to roll back in the middle of a nested procedure and an error has NOT occurred (presumably you've detected some other logical error, not a physical error raised by SQL Server) you should use RAISERROR to set @@ERROR to something. Maybe you test whether @@TRANCOUNT is greater than zero in an error handler, in case the nested procedure you called has already rolled back. IIRC, you get an error if you try to roll back when the nested transaction count is already zero.
|
|
|
|
|
You're right, and I know this, but there seems to be no indication in the OP of a nested transaction - hence my comments and the modified version of the code.
-- modified at 10:45 Wednesday 25th July, 2007
[Edit]Reading my original post I see that I did mention the transaction count of 1 before the commit transaction leading to a transaction count of 0 afterwards.[/Edit]
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
okkishore wrote: how we will recover from database was lost or scatch.
It was deleted? Corrupted? The hard drive was thrown into a vat of acid?
okkishore wrote: when there no is backrecovery
You mean you wern't keeping backups?
If you've completly lost the database and you have no backup then it's gone and your not getting it back. Maybe in future you'll do backups.
If it's not completly gone you might be able to use an undelete program or fix the corruption.
EDIT: I just checked your post below. Did you try and get rid of the duplicates without backing up and then delete the entire thing by accident?
|
|
|
|
|
Well the wording you've used is complete nonsense.
|
|
|
|