|
Hi, a lot of PTC sites on net , you can post your ads in the right place.
Thanks
|
|
|
|
|
Hello
I have two Database.
DB1 And DB2 there are tbl1 And tbl2 two tables in corresponding database.
if any value change in tbl1 table the corresponding value will also update in tbl2 tables.
Can any one help me in this regard.
Thanks in advance
Sujit
|
|
|
|
|
|
hi all,
i am trying to install SQL express 2005 from following code
str = Application.StartupPath & "\SQLEXPR32\setup.exe /qb ADDLOCAL=ALL INSTANCENAME=" & InstanceName & " SECURITYMODE=SQL SAPWD=mypassword DISABLENETWORKPROTOCOLS=0 "<br />
Shell(str, AppWinStyle.Hide, True)
it works well for first time. When i install from above code and uninstall from Control panel and then once again i execute the above code then it does not install the SQL server Express
I think Uninstall from control panel does not completely remove the SQL server Express.Its require some more steps
Whether anybody can suggest me that how can i completely uninstall the SQL server Express from my machine ?
|
|
|
|
|
How i can show relationship between tables as a diagram in MYSQL
|
|
|
|
|
Hello All,
I've been googling and based on many articles I belive what I'm asking of sql2000 triggers is not possible for the particular type of error i'm getting.
I am trying to integrate with an existing application on sql 2000 without affecting it's behaviour. When it inserts/updates/deletes in a few tables I need to perform an I/U/D in a sql 2005 DB through a DB link. This is all set up fine, as well as the trigger to do the insert. I need to be able to put error handling in the trigger so that it does not affect I/U/D of the existing product.
Right now, MSDTC is having a fit because I don't have it configured properly on purpose. I did configure it correctly and then reverted so it would raise errors so I could test error handling.
Nothing I've tried so far will let me handle this error in an insert trigger on sql 2000:
Server: Msg 7391, Level 16, State 1, Line 2
The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction. OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator.
Execution stops immediately so I can't even get to an "IF @@ERROR" statement and the transaction is rolled back. I know how to fix this error but I need to be able to handle this type of error so I can use xp_logevent or something similar to monitor. Is it possible - Any ideas?
Does anyone know of a way in sql 2000 to handle this type of error in a trigger on sql 2000?
|
|
|
|
|
Hi Guys,
I am having problem when running the Following SQL script.It takes Pretty long time to return result.
I am having about 500,000 records in my database.
select count(distinct(CR_Cli)),SO_name from Callrecords inner join dbo.StudioOperators
On CR_StudioOperatorID=SO_ID
where datename(month,cr_callstart)='April'
and Cr_cli not in (select Cr_cli from Callrecords where cr_callstart<'2009-03-31')
group by SO_name desc
Is there any way i can write this script?
Thanks you very much.
|
|
|
|
|
In SQL Server Management Studio, place this query in the workspace and click on the icon that has a description of "display estimated execution plan". This will give you an idea of where there may be table scans and where you might be able to add an index to improve your performance.
You should also check to see if your statistics are updated on the tables and indexes involved in this query before running the "display estimated execution plan" as described above.
David
|
|
|
|
|
Thank you so much.It works
|
|
|
|
|
Hi there I am trying to update a field in our contact table. I have a view which contains all of the contacts that i need to run the update for, my question is:
How do i update a contact table but only update the contacts that are in my custom view?
|
|
|
|
|
This example is based on the AdventureWorks database;
UPDATE HumanResources.Employee
SET Title = 'updateFromView'
WHERE EmployeeID IN (SELECT EmployeeID FROM HumanResources.vEmployee)
The select statement gets a list of ID's in the view. You can then update all the records in the table that have this particular ID. You'll need something to identify each record individually for this to work. If there isn't, then try to add the primary key to the view. If there is no primary key defined in the base-table, add an identity to fullfill this role.
Good luck
I are troll
|
|
|
|
|
Hi,
I have a table which looks like the following.
OriginalTable
OriginalTable_Id(pk) OriginalTable_Name(unique)
---------------------------------------------------
1 NewColumnName1
2 NewColumnName2
...
I need to make it look like this table below dynamically:
NewTable
NewTable_Id(pk) NewColumnName1 NewColumnName2 ...
---------------------------------------------------------------
I know I need to create a new tempory Table (using tempDB?), but I don't know how to get the values in the table to be the new column names.
I have this at the moment:
CREATE TABLE NewTable
(
NewTable_Id INT PRIMARY KEY,
???
)
???:
Would it be something like:
SELECT OriginalTable_Name FROM OriginalTable
Any tutorials or advice would be greatly appreciated.
Thanks in advance.
hmmm pie
|
|
|
|
|
Have a look at pivot clause here[^]
Regards,
Syed Mehroz Alam
My Blog
My Articles
Computers are incredibly fast, accurate, and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination. - Albert Einstein
|
|
|
|
|
Brilliant, that's exactly what I was looking for thanks alot.
But how can I get the name of the columns dynamically.
eg.
The value is '198' so how can I make it the column name without knowing the value?
Edit:
Thanks again for your help.
Two minutes after posting this reply and Googleing 'Dynamic Pivots' I found this[^] which solved my problem.
Sorry for the inconvenience.
hmmm pie
modified on Wednesday, April 22, 2009 2:15 PM
|
|
|
|
|
Hi
I have a stored procedure that takes an XML as a parameter. The problem is that anyone could call it passing in any XML. How do i write the stored procedure so that the XML that it takes in as a parameter is based on a specific schema?
Thanks
Neil
|
|
|
|
|
Hi
I Made Setup from my C# program (that work's with Oracle 10g)
when I try to run this program - in different Computer, i got this error message:
unable to load dll 'OraOps10.dll'
what it can be ?
thank's in advance
|
|
|
|
|
Did you add the reference to OraOps10.dll to your project? Did you copied this library also to the output folder (where your app is located)?
|
|
|
|
|
|
Maybe you have to install some kind of oracle client at the target computer.
|
|
|
|
|
I think so, but which file's I need ?
|
|
|
|
|
|
Friends,
I want to connect MS-ACCESS database through asp.net C#(LOCALLY).
help
|
|
|
|
|
Help with what exactly? The connectionstring? The C# code? What provider?
Start here[^].
I are troll
|
|
|
|
|
Hi
i have image stored in the DB, i could retreive it and dispaly it the body of the report but when i try to view it the header i can not because is not allowed to reffrence to dataset feild in the header,
i tried the Convert.ToBase64String but it did not work for me, it does not give an error but nothing is displayed
so please can you help here
modified on Wednesday, April 22, 2009 2:58 AM
|
|
|
|
|
Hello. I want to save the RowCount returned value in a variable and want to print (+1 with 'A' prefix).
I created a variable as int.
declare @TotalIntRow as int
Now I'm unable to assign the returned value of rowcount in a variable.
i use these ..
@TotalIntRow = select Count(*) from Rcount
Error :- Msg 137, Level 15, State 2, Line 1
Must declare the scalar variable "@TotalIntRow".
set @TotalIntRow = select Count(*) from Rcount
Error : - Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'select'.
[I also tried to add a demo value , Set @TotalIntRow = 1; , but showing message number 137 as above mentioned]
How could I save the value in it.
|
|
|
|