|
hi all,
i m ganesh new to code project....
i jus want to know all information about CORBA and MSP for database connection. Is anyone to help me out? n the details needed asap...thnks in advance...
GANESH
|
|
|
|
|
hellogany wrote: i jus want to know all information about CORBA and MSP for database connection
I think if we were to tell you ALL the information about that then we'd exceed the forum guidelines for length of post. Have you tried google?
|
|
|
|
|
hellogany wrote: want to know all information about CORBA
It is a very big topic and not one that can have all parts covered in a post. You are best to start researching...
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
hi all
i have a table called Employee and Employees. i want to see if these tables have a same value on the following Fields "EmployeeName","Lastname", all this tables have the a Primary key called "Primary_KEY", how can i check if there is any record that is not the same and Display it. thanks
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
For SQL-Server:
select E1.Primary_Key, E2.Primary_Key,
IsNull(E1.EmployeeName, E2.EmployeeName) AS EmployeeName,
IsNull(E1.LastName, E2.LastName) AS LastName
from Employee E1
full outer join Employees E2
on E1.EmployeeName = E2.EmployeeName
and E1.LastName = E2.LastName
where (E1.Primary_Key is null or E2.Primary_Key is null) Regards
Andy
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message".
|
|
|
|
|
Thanks and Rate for your Reply
I will try it
Rated
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hello Everybody !!
How Can I put a default value in dataColumn
Thanks
Sarfarj Ahmed
|
|
|
|
|
Hi all,
I have this problem:
i want to write a select statement. But i am connected to one server and i want to select on another database on another server????
How do i go about doing so?
if i run this script:
SELECT
a.*
FROM
OPENROWSET('SQLOLEDB.1','Data Source=<OurServerName>;Initial Catalog=<OurDataBaseOnThatServer>;User ID=<OurUserName>;password=<OurPassword>;','SELECT TOP 1 FROM <OurServerName>.<OurDataBaseOnThatServer>.dbo.<TableNameInThatDataBase>') a
Am i doing something wrong??? i get an error: "Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'SQLOLEDB.1' reported an error."
Please advise
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
I found this code on the internet BUT i haven't run it yet.
EXEC sys.sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDE<br />
go<br />
<br />
EXEC sys.sp_configure N'Ad Hoc Distributed Queries', N'1'<br />
go <br />
<br />
RECONFIGURE WITH OVERRIDE<br />
go<br />
<br />
EXEC sys.sp_configure N'show advanced options', N'0' RECONFIGURE WITH OVERRIDE<br />
go
Do you think this could solve my problem?
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Probably.... Its better practice to add the other server as linked server if you are going to use the connection often enough. It will simplify your query writing (no openrowset crap needed).
Redneckin with www.wantedband.com
|
|
|
|
|
I have seen that to use OPENROWSET command the first parameter should be MSDASQL
the SQLOLEDB is used for OPENDATASOURCE. i have tried this query and working perfectly. Also i hope that you have already enabled the OPENROWSET and OPENDATASOURCE command from the SQL server surface area configuration wizard.
SELECT *
FROM OPENROWSET('MSDASQL',
'DRIVER={SQL Server};SERVER=yourremoteserver_name;UID=your_remote_user_id;PWD=your_remote_password',
your_remote_database_name.dbo.remote_table_name)
Neeraj Gupta
|
|
|
|
|
Hi,
I want only count of a records returning by a particular stored procedure..
Im trying like this..but not coming..
DECLARE @COUNT INT
SET @COUNT = EXEC 'SP NAME'
SELECT @COUNT
please help me..
bala
|
|
|
|
|
SELECT COUNT(*) FROM TABLE WHERE Variable = @Variable.
Hope it helps.
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
hi,
thanx for ur reply..
but i want count of (number only) records returing by a particular stored procedure..not table records count..
bye
|
|
|
|
|
@@ROWCOUNT will return the no. of rows affected by the last operation in the current session.
Paul Marfleet
|
|
|
|
|
hi paul, thanx for ur reply..
but in this scenario rowcount will not work.. im trying like this
DECLARE @COUNT INT
SET @COUNT = EXEC 'SP NAME'
SELECT @COUNT
can we capture only count of records returning by stored procedures like this??
|
|
|
|
|
Works OK when I try it...
Paul Marfleet
|
|
|
|
|
You can use @@ROWCOUNT in your stored procedure and take the value returned by @@ROWCOUNT as output parameter of stored procedure.
|
|
|
|
|
Hello Everybody
I am new in SQL SERVER 2005 and ASP.NET 2.0 , Im doing a Online Library Management Project, I know you are expert and please help me.
On Borrower Table
MemberID, ItemID, DateTaken, Duedate, SubmitDate, Delay
On Penalty Table
MemberID, ItemID, Fine, Paid, DatePaid
(B as Borrower and P as Penalty) and a Member borrow a Item and Borrower below
B.MemberID = SCOM1001
B.ItemID=EBEG100302
B.DateTaken = 14/10/2007
B.DueDate= 16/10/2007
B.Submitdate= NULL
B.Delay=NULL
right now CurrentDate is 18/10/2007 and M.MemberID = SCOM1001 did not return ItemID = EBEG100302 .
Per day penalty is 1.500 and Member already delayed 2 days and Tomorrow it will be 3 days then 4 days then 5 days............
Just think Penalty Table is Empty, If you delay 1 day then Penalty Table will automatic add MemberID, ItemID, Fine
P.MemberID=SCOM1001
P.ItemID = EBEG100302
P.Fine=1.500
P.Paid=NO
P.PaidDate=NULL
Dealy day 2
Penalty Table will automati update P.Fine, Value will be 3.000
Delay day 3, day4....................... UpdateP.Fine
My Question is it possible to write some code inside my SQL SERVER datbase, Which will automatic check the B.DateDue column and (add or update Penaly Table where necessary)
I can write some function inside ASP.NET which will create a report for my needs but It will be taken more time.
I want my DataBase will check column status and put value to other table or same table where necessary.
Please tell me how can I do it? Any instruction will be really helpful.
Thanks
Sarfaraj Ahmed
Sarfarj Ahmed
|
|
|
|
|
Didn't you ask the same question last week? I gave you some advice then.
Use an INSERT...SELECT to select the records from the Borrower table where SubmitDate is greater than DueDate and insert corresponding entries into the Penalty table. Calculate the fine based on the logic I explained in my previous reply.
Paul Marfleet
|
|
|
|
|
Thanks For Your Reply
I followed your instruction last time.
I put that query inside ASP.NET and I have to call every single time for updating information.
I want this code inside my database which will be executed automatically and put that value on the correct column.
Could Please Help me about this.
Thanks
Sarfarj Ahmed
|
|
|
|
|
Post what you have written so far. I'm not going to write your code for you, but I'll look at what you've currently done try and help you improve it.
Paul Marfleet
|
|
|
|
|
hi i m ajay
can any one of u tell me that for javascript problem where i should write my problem...
actually i want to make a fuction that can compare two dates....the date are in mm/dd/yyyy formate..
i want a alert that comes in that condition when second date will less thn first...
and i want this onclick of button
thxxxx
Ajay Rathi
software engineer
NOIDA(UP),INDIA
|
|
|
|
|
Your problem is that you posted your question in the wrong forum.
Paul Marfleet
|
|
|
|
|
hi
how to display files of week in a month based on date.plz send query for displaying the files for a week in a month using sqlserver 2000
send query asap.
regards
venkat
|
|
|
|