Replication Prob.
Jun 26, 1998
I am having a problem replicating between 2 servers using 1 distributor. I have server X and server Y.
Server X is a publisher, distributor, and supposedly a subscriber, while server Y is a subscriber and
supposed publisher (using Server X as a remote distributor). My logreader task (off server X since
it is the distributor) gives me the error message "Unable to connect to server Y". I was pretty sure it
is possible to publish to the same server that is your distributor am I wrong? If I am not wrong and
this scenario is possible any ideas on why it isn`t working and how to get it working?
Thanks for the help in advance
Levi Akers
View 1 Replies
ADVERTISEMENT
May 17, 2001
I have to transfer some data from my SQL Server 7.0 database on NT Pro to a Unix server as a text file. This has to be scheduled as a weekly job.
I can use DTS to transfer data into a text file , but is there a way by which i can export this file to a Unix server also ?
Any suggestions would be appreciated.
Thanks!
View 3 Replies
View Related
Aug 29, 2007
Hi friends,
My database had this require ment
Every day my database 12;00pm we will take fullbackup
1:00 O clock differntial backup
2:00 O clok again on diifferntial backup
Every 15(fifteen)Min we will take Transaction log backups
My database is crashed on 2:00 clock we will not take 2:00 clock Tlog backup
we have taken only 1:45 Tlog backup.
Here my database is loss 1:45 to 2:00 clock data
we cannot take this 15min Tlog backup
Any body plz give suggestion on how to recover this 15min data plz help me it very urgent
Regurds
subu
Meti BEST OF THE BEST
View 1 Replies
View Related
Jun 2, 2006
Bonjour,CREATE TABLE [dbo].[MAND]([Mat] [varchar](5)[Dur] [varchar](1)) ON [PRIMARY]Mat Dur16030d16030i31217i10000d12000i10000d31217d35000d36000i35000dJe voudrais avoir le resulat suivant (i need this result) :10000 d35000 dCar ils ont tous les deux "d". J'ai beau faire un regroupement (groupby) par Mat avec un having çà ne marche pas.Comment faire ?Merci d'avance
View 14 Replies
View Related
Oct 26, 2006
hi, i get
Msg 208, Level 16, State 1, Line 1
Invalid object name 'a1'.
i do have a1, what is the problem here?
thanks
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[STP_InvoiceByPono]
AS
BEGIN
SET NOCOUNT ON;
declare @Fieldname varchar(25)
declare @stmt varchar(max)
declare fields cursor for select amounttype from Inv_AmountTypes
set @stmt = 'Select distinct a1.date_, a1.suppliercode, a1.invoiceid, a3.pono'
open fields
fetch next from fields into @fieldname
while @@fetch_status = 0
Begin
set @stmt = @stmt + ',(Select b3.amountfc from
invoice b1 inner join Inv_Detailed b2 on b1.InvoiceID = b2.InvoiceID
inner join Inv_Multiplicity b3 on b2.InvoiceID_Detailed = b3.InvoiceID_Detailed
inner join a1 on a1.InvoiceID = b1.InvoiceID inner join a3 on a3.Pono = b3.Pono
where amounttype = ''' + @fieldname + ''') as ' + @fieldname
fetch next from fields into @fieldname
END
CLOSE Fields
DEALLOCATE Fields
set @stmt = @stmt + ' From Invoice a1 inner join Inv_Detailed a2 on
a1.InvoiceID = a2.InvoiceID inner join Inv_Multiplicity a3 on
a2.InvoiceID_Detailed = a3.InvoiceID_Detailed'
exec(@stmt)
select(@stmt)
END
View 6 Replies
View Related
Jun 10, 2006
Almost have my custom membershipprovider finsihed, but have ran into a small snag.Scenario:: 2 methods. CreateUser(blah blah) and ValidateUserName(string username). CreateUserWizard control calls CreateUser(blah blah) which in the start of the method calls ValidateUserName(string username). ValidateUserName runs a stored procedure on SQL 2k to check and see if user exists in the db. Returns a bool true or false. If true, then everything works correctly and returns a message displaying that the user exists, please enter a different name.Now the problem. If it returns false, meaning that the username doesnt exist and is available to use, it calls a stored procedure to create the record in the users db. This is where the problem lies. It does NOTHING but sit there waiting. But it never seems to time out. If I comment out the validating. It will add a record successfully.Im wondering if it has something to do with calling 2 stored procedures consecutivly????::CODE TO FOLLOW::
View 2 Replies
View Related
Aug 24, 2001
I have a couple of jobs set on 1 server. I want these jobs to be transferred, or rather copied to another server. Is there a method by which I can just point these jobs to another server, without having to manually create them again ??
Thanks!
View 1 Replies
View Related
Jan 17, 2001
I need to get only the Time from the datetime result. I am curently using this:
select right(Convert(varchar(20),getdate(),109),8)
Is there any other built function of SQL that we can use to get this ?
Thanks in advance!
SC
View 3 Replies
View Related
Aug 1, 2002
Whenever I am creating a new database, I am not getting any system stored procedures created :o( the system tables & views are created though :o(
what maybe the problem?
thanks!
View 4 Replies
View Related
Aug 12, 2005
Hi,
Having a problem with DTS Wizard crashing in XP, has anyone experienced similiar problems?
Using XP with SP1, transfering excel file to an oracle serve.
View 2 Replies
View Related
Oct 21, 2004
I have a table w/ 17K line items. There are only 8.5k I want because each one is duplicated exactly twice. How do I get one of each of these line Items into a new Table?
I tried this:
Select DISTINCT * from DuplicateTable INTO NewTable
And it doesnt work. I am still getting the 17K transported over... any solutions?
View 1 Replies
View Related
Jan 28, 2004
Hi,
i have a few web jobs, that were set up by the DBA that worked here before I did and they have just stopped running and I have no idea why.
The error I get is:
Executed as user: dbo. SQL Web Assistant: Could not establish a local connection to SQL Server. [SQLSTATE 42000] (Error 16804)
Does anyone have any experience with this?
Thanks in advance
View 6 Replies
View Related
May 11, 2004
I wrote next ActiveX script. But it doesn't work. Can somebody tell me what i'm doing wrong. It should retrieve the mail and Assoc-NT-Account, but so far i only get errors?
Another question: should I explicitly write this to a table? If yes, how?
************************************************** ******************** ' Visual Basic ActiveX Script '************************************************* **********************
Function Main() Main = DTSTaskExecResult_Success
strServerName = "**********" set oConn = CreateObject("ADODB.Connection") set oCommand = CreateObject("ADODB.Command") set oRS = CreateObject("ADODB.RecordSet")
oConn.Provider("ADsDSOObject") on error resume next oConn.Properties("User ID") = "*********" oConn.Properties("User Name") = "*******" oConn.Properties("Password")="*********" oConn.Properties("Encrypt Password")= True oConn.Open "Ads Provider"
set oCommand.ActiveConnectection = oConn
strQuery =" Select Assoc-NT-Account, mail from LDAP://servername/o=orgName/ou=OrgUnit where objectClass = 'person' order by cn"
oCommand.CommandText = strQuery oCommand.Properties("Page Size") = 99
set oRS.sort ="cn"
i = 0 While not oRS.eof vObjectClass=oRS.Fields("objectClass") bShow = oRS.Fields("mail") > " " if bShow then oRS.Fields("mail") oRS.Fields("Assoc-NT-Account") End If oRS.MoveNext i=i+1 wend End Function
View 7 Replies
View Related
Jun 14, 2007
repairJob(repairJobID, description)
->('overhaul','blablabla...')
->('gearbox','blablabla...')
sparePart(sparePartID, description ,cost)
->('sp1', 'oil+bolt+...', 100)
->('sp2', 'bolt, clamp...', 200)
->('sp3', 'protector, cover..', 500)
repair(repairID, repairJob, sparePartID, cost, workShopID)
->('r001', 'overhaul', 'sp1', 100, 'w001')
->('r002', 'overhaul', 'sp2', 200, 'w001')
->('r003', 'gearbox', 'sp3', 500, 'w002')
->('r004', 'gearbox', 'sp2', 200, 'w002')
output:
Is it possible to make it?
View 10 Replies
View Related
Mar 25, 2008
I have a stored proc that creates a view so I can pass parameters. I need to replace the 120 with the variable @MEA. I can't get my quotes right to make this work.
ALTER PROCEDURE dbo.spi_CallList
(@strAgent nchar(4), @MEA int)
AS
DECLARE @Msg varchar(255)
declare @SQL varchar(4000)
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'qs_CallList1')
DROP VIEW qs_CallList1
SET @SQL = 'Create view qs_CallList1 as
SELECT top 100 percent tsd_Claim.clinsnum AS [Ins#], Sum(tsd_Claim.cloutstandingamt) AS OutstndByIns
FROM (tsd_Claim LEFT JOIN [qs_SQLClaimStatusLastEntryCL] ON (tsd_Claim.clnum = [qs_SQLClaimStatusLastEntryCL].Claim)
AND (tsd_Claim.clpid = [qs_SQLClaimStatusLastEntryCL].Pat))
LEFT JOIN tsd_Patient ON tsd_Claim.clpid = tsd_Patient.PID
WHERE (((tsd_Patient.PAGENT)=''' + ltrim(rtrim(@strAgent)) + ''')
AND (([qs_SQLClaimStatusLastEntryCL].Pat) Is Null)
AND ((tsd_Claim.clfromdos)<GetDate()-120))
GROUP BY tsd_Claim.clinsnum
ORDER BY Sum(tsd_Claim.cloutstandingamt) DESC'
EXECUTE(@sql)
View 3 Replies
View Related
Jul 23, 2005
Himy prob is like this..-----------------------------create table ax(i int ,j int)create table ay(i int ,j int)insert into ax values(1,100)insert into ax values(1,101)insert into ax values(2,103)insert into ay values(1,200)insert into ay values(1,201)insert into ay values(1,202)insert into ay values(2,203)insert into ay values(2,204)insert into ay values(2,205)select * from axselect * from ay--------------------I want to delete2 records(count of ax.i = 1) from ay.i = 1 and1 record(count of ax.i = 2) from ay.i = 2expected result :select * from ayi , j-----1 , any data2 , any data2 , any datanote: j is the temporary column in both table.thanksdishan
View 2 Replies
View Related
Dec 4, 2007
Hi Friedns,
I am transfering data from oledb source to excel destination i am getting this error
error : First name cannot be converted unicode datatype to non-unique code datatype
any body plz help me
Thx
subu
View 10 Replies
View Related
Aug 17, 2007
i need to concatenate this two database fildes
PATNT_REFNO_NHS_IDENTIFIER defined as varchar
PATNT_REFNO defined as numeric
out put of these tewo colomns like
PATNT_REFNO_NHS_IDENTIFIER = NPA0123
PATNT_REFNO = 0125487
so i need to get a result like
NPA01230125487
any idea
regards
Niranga
View 1 Replies
View Related
Mar 10, 2008
Hi All,
My question is i had a report with drop down list which contains nearly 200 items.when i select all items it's shows the error. I am able to get the result up to 19 items.
even i tried to filter at report leval using IN operator it is not working.can any one give some suggation.
My expression is
Fields!DefectText IN " ( ' " & JOIN(PARAMETRS!DefectText.Value , " ' , ' ") & " ' )"
REGARDS
Sith
View 4 Replies
View Related
Nov 10, 2007
TITLE: Microsoft SQL Server 2005 Setup
------------------------------
SQL Server Setup failed to execute a command for server configuration. The error was [Microsoft][SQL Native Client][SQL Server]Cannot add functional unit 'sp_sqlagent_get_startup_info' to component 'Agent XPs'. This unit has been already registered with the component.. Refer to the server error logs and Setup logs for detailed error information.
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=setup.rll&EvtID=29521&EvtType=lib%5codbc_statement.h%40Do_sqlScript%40OdbcStatement%3a%3aexecute_batch%40sysdbupg.sql%40107%40x3bff
------------------------------
BUTTONS:
&Retry
Cancel
------------------------------
what em i gona do
View 1 Replies
View Related
May 27, 2008
Hi Friends,
I have one application with this some data inserting into MS SQL SERVER some big amount of data insert at this time
lote of data is inserting but some data is not inserting i am not getting any error what i can do could plz help me
some data is not inserting,, i am not getting any error also
View 2 Replies
View Related
Oct 16, 2007
Hi Friends,
My Question is,
1)When i export the report the data i am getting in text format.how could i get tha data in number format by default.
2)my report has a total of 15 columns, so when user scrolls ,the first column allways visible.
Waiting for your response
Regards
Sithender.S
View 1 Replies
View Related
Mar 21, 2007
Hi,I have three different tables. I want one login screen and check all table ,if any user got it,but i have written simple store procedure and i take values by parametrically,how can i know user's table name?ALTER PROCEDURE [dbo].[sp_GirisKontrol] -- Add the parameters for the stored procedure here @Username nchar(12), @Password nchar(12), @Id int output, @Rowguid UniqueIdentifier outputASBEGIN SET NOCOUNT ON; SELECT @Id=Id,@Rowguid=Rowguid FROM Admin WHERE Username =@Username AND Password =@Password UNION SELECT @Id=Id,@Rowguid=Rowguid FROM Ogretmen WHERE Username =@Username AND Password =@Password
UNIONSELECT @Id=Id,@Rowguid=Rowguid FROM Ogrenci WHERE Username =@Username AND Password =@Password if(@Id IS NULL) SELECT @Id=-1END
View 3 Replies
View Related
Feb 23, 2005
Please anybody help me about this.
I have windows 2003 server installed in my pc. I have sql server without any userid and pwd.
so i have written code in c# ,
server=server Address;uid=;pwd=;database=database;
Is the above string works? I have given in code as above as a connectionstring.
I am facing the prob in connection. Please anybody can guide me.
Thanks
View 1 Replies
View Related
Aug 2, 2000
Hi..,
I am using SQL Server 7.0 SP2.
I've got a table x that has fields say:
id1 id2 a b c d e f
(each field name is separated by a space.
id1 + id2 is the primary key combination for this table)
If there are say 100 records in this table I can write a SELECT query like:
SELECT (a + b + c + d) AS Item
FROM x
WHERE id1 = 'my_value1' AND id2 = 'my_value2'
and I could get up to 16 records (say) using this query. The no. of records I get is variable.
My problem is to produce a single record that contains 16 Item fields. Can anyone advise me how to do this without using a cursor?
I'll be grateful for any help,
Thanks for your patience,
Cheers,
Sudhakar
View 2 Replies
View Related
Mar 10, 2000
Hello, everyone!
I have defined a datetime field (called date_created).
When I insert the value 01/01/1999
<insert candidate values (01/01/2000)>,
it accepts the date (i.e <Select date_created from candidate> )as 1900-01-01.
However, when I enter the date as ‘01/01/1999’<insert candidate values(‘01/01/2000’)>,
i.e in single quotes, it accepts the date as 01/01/2000 only!
Are single quotes essential for this or is there something that I have over looked!
Please enlighten me!
Thanks in advance!
Rgds,
Adie
View 2 Replies
View Related
Mar 4, 2000
Hello, everyone!
What are the precision & the scale values in the numeric field for?(as also in int, etc).I need to have a field that is exactly 6 digits in length. However , when I enter the value , in the length column , it defaults to either 5 or 9 , depending on the precision values. Also when I enter the data , that field accepts not only 9(defined with precision of 10), but more than that, till about 15 digits!!…I think I am not clear on the use of precision…what do I need to define the field as so it accepts only 6 digits? Please enlighten me .
Thanks in advance!
View 1 Replies
View Related
Oct 5, 2000
I am facing a funny problem. I am doing a select to get records with "ExitDate" greater than "FromDate".
However, when I run the query, it is also returning the "FromDate".
SET @FromDate = '3/31/2000'
SELECT IndividualID, ExitDate FROM clientserviceprogram
WHERE exitdate IS not null
AND EXITDATE > @FromDate
I am still getting records with ExitDate = '3/31/2000'.
What am I missing out on?
Thanks in advance!
View 2 Replies
View Related
Jun 23, 2006
i am sure this post appears here a lot...
my date column currently looks like this:
2006-06-23 00:00:00.000
i want it to look like this:
2006-06-23
my code (a stored procedure) looks like this
Code:
ALTER PROCEDURE dbo.sp_NewPersonalPic
(
@photo_name VARCHAR(50) = NULL,
@photo_location VARCHAR(100) = NULL,
@photo_size VARCHAR(50) = NULL,
@user_name VARCHAR(50) = NULL,
@photo_caption VARCHAR(50) = NULL,
@photo_default VARCHAR(50) = NULL,
@photo_private VARCHAR(50) = NULL,
@photo_number INTEGER = NULL,
@photo_date DATETIME = NULL
)
AS
BEGIN
SELECT @photo_date = CONVERT(DATETIME,convert(varchar(10), getdate(), 101))
END
BEGIN
--SET ANSI_WARNINGS OFF
INSERT INTO PersonalPhotos
(photo_name, photo_location, photo_size, user_name, photo_caption, photo_default, photo_private, photo_number, photo_date)
VALUES (@photo_name, @photo_location, @photo_size, @user_name, @photo_caption, @photo_default, @photo_private, @photo_number, @photo_date)
--SET ANSI_WARNINGS ON
END
RETURN
what am i doing wrong?
thanks.
View 2 Replies
View Related
Jan 25, 2008
Hi
I have an installation of Cognos Controller 8.2. The installation of application seems to be all 100%.I can create blank SQL database use the application to upgrade the tables but as soon as I populate the database with data and try to optimise from the application there is an issue. It gives me the error below:
Standard error
Number 5
Source: Frango dircect.Optimise.DeleteTempFox#controllerProxyClie nt
Description: System.Web.Services.Protocols.SoapException
server was unable to process request-->System.Security.Security Exception: Permission Denied
I have checked permissions on the database and all is fine "fastnet" is added as the DB owner and the SQL instance is 100%, Can anyone please shed some light on this.
View 3 Replies
View Related
Feb 7, 2004
I have an SQL 7 server on NT4 SP6, Pentium II500, HW Raid5, 1Gig Ram.
In the db, there's one table A table with ~100,000 rows.
SELECT col1 from A takes between 15 and 45 secs in Query Analyzer.
SELECT * from A takes 15min+!
So far, I can only compare that to my test system, where a SELECT col1 takes less than a second, SELECT * around 15secs.
Test System is a P4 1.8, 768MB Ram, Single SCSI disc on Win2K, SQL2000, identical data.
I'd expect that to be faster, but not THAT faster. I suspect the performance problems to be hardware-related, but itm, I have only remote access.
I'd appreciate any hints regarding what to look for, what stupid things I may have done or forgotten or what I could do to track the source of the problem.
TIA, chris
View 13 Replies
View Related
Apr 14, 2008
Hi All, I have created a new user login with all necessary database permissions , but while trying to connect to the server with the same login the below error msg is coming up, please advise.
Login failed for user 'TESTAPP'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)
View 7 Replies
View Related
Oct 20, 2005
Need help here, i had develop a simple system by using asp.net, but i need to connect to the sql server by using vb.net in the asp.net. I had try to create a sqlconnection object in the web form, and it work well in the microsoft studio.net with the connection string: "workstation id=EDDOM;packet size=4096;user id=sa;data source="EDDOMTARC";persist security info=False;initial catalog=TARCDB". i am able to view and connect to the sql server in the microsoft studio.net but when i try to access the login.aspx file by using the internet explorer, this problem occur:
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
is any body know why? i had try to use the same connection string in asp and it work. but just why that connection string cant work with vb.net? i will be appreciate if anyone can provide me an example so that i can study on it. thanks.
View 7 Replies
View Related