|
Hmmmmm.....
Just for a test, I tried the code below. It does not through any errors, but it does not perform the update either.
Any ideas?
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [test\me].[GIStoCRW]
AS
BEGIN
SET NOCOUNT ON;
EXEC sp_addlinkedserver
@server = 'CRW',
@provider_name = 'SQLNCLI',
@datasrrc = 'TheServerName',
@catalog = 'TheTablename'
EXEC sp_addlinkedsrvlogin CRW, FALSE, 'My Login’, NULL
update CRW.GEO_UDF set WATERDISTRICT = 'TEST' where SITE_APN = '123'
END
GO
Thanks
|
|
|
|
|
Be sure to set delegation too. If you fail to do so you will run into problems.
From BOL:
SQL Server and Windows can be configured to enable a client connected to an instance of SQL Server to connect to another instance of SQL Server by forwarding the credentials of an authenticated Windows user. This arrangement is known as delegation. Under delegation, the instance of SQL Server to which a Windows user has connected by using Windows Authentication impersonates that user when communicating with another instance. Security account delegation is required for distributed queries when a self-mapping is used for a specific login against a specific linked server.
"My interest is in the future because I'm going to spend the rest of my life there." - Charles F. Kettering
|
|
|
|
|
Looks like I need to take a few steps backwards. I can’t even get a table in the local DB to update.
As I said, this is my first SP.
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [domain\me].[TestUpdate]
AS
BEGIN
update gis.crw_gis_data set block = 'test' where id = '123'
END
GO
Shouldn’t the above code update the table? I’m connected as the DB owner.
|
|
|
|
|
Hi Experts
I want To Encrypt my whole Database With Single Command or Any Query in SQL Server 2005
is Their Any Way To Encrypt The Database
Thanku
Dinesh Sharma
|
|
|
|
|
How do you mean "Encrypt my whole Database"?! Do you want to encrypt data inside tables?
By the way please type normal words, don't use CapsLock for every first letter of the word.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
i want encrypt data inside the table of database .
actually i am create my database and software using C#.Net now i face the problem when my customer tell me that i want that the data inside the table of my database is encrypted no one can see it
thank u
Dinesh Sharma
|
|
|
|
|
|
Sharma Dinesh Kumar wrote: i want encrypt data inside the table of database .
This is very different from your original stated problem. Are you sure this is now correct, or do you want to encrypt only a column, or Store Proc?
"My interest is in the future because I'm going to spend the rest of my life there." - Charles F. Kettering
|
|
|
|
|
|
Hi,
encrypting the data will slow down all operations, especially search operations.
anyway, isn't username-and-password protection enough?
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
hi Experts
I am Creating A Application using C#.NET and SQL Server 2005.
In my Database their is a Table Having 9 Fields But in Out of 9 fields Their
is one Field where We Have To Store Large Text File Data like 2,3 or more page data
then Suggest Me Which Data type i am using To Store this Fields i have Also Search Record in this Large Field if i am Taking Text Then It Does Not Provide Me Search in text Data Type in SQL Server Express Version. I am also Find The Result with Fast Speed. and Record in My Table is 1 Lakes or more then Suggest Me How I can Handle This Suit ions.
|
|
|
|
|
Kumar
I know that English is not your first language, it is so obvious it hurts, but you need to address the problem of communication, your post is VERY difficult to understand and painful to read.
I suggest you get someone more skilled in English to help you with your message construction because your current efforts are BLOODY IMPOSSIBLE TO UNDERSTAND.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
May be your mother tongue is English or you know English better than the
original poster.
Instead of conveying your pain to him in a different fashion, do you think you made a justification by abusing him when you are here to answer a technical question?
Niladri Biswas
|
|
|
|
|
Hmm I thought I was reasonably polite, I pointed out there was a communication issue and tried to convey the difficulty in reading his post. If the last statement was offensive, put it down to MY communication problem, there is nothing offensive about it where I come from (Oz);
Was I just supposed to ignore the poor bugger because I could not understand him.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
try using nText data type....
|
|
|
|
|
is nText Provide Search in Database..
|
|
|
|
|
Use Text data type.
For searching use Patindex or Full text search..
Please let me know in case of doubt.
Niladri Biswas
|
|
|
|
|
I posted recently a little Dbf.Net library.
I support all the .DBF files I could find so far.
I can't find good .mdx samples or clipper extensions.
Any clipperhead here would like to help?
dbfdotnet.codeplex.com
|
|
|
|
|
HI all,
within several days i will finish to develop a database with SqlServer 2005 ,this database is so big with a lot of tables and so on .Now i wish create a diagram(schema) for it that show all table with fields and respective datatype but i don't know how create it,i have not idea if i need a tool to create or else.
I create a diagram with VisualStudio 2008 Sp1 but the diagram is without datatype, so do you have any idea how create e diagram (schema) of a database?Do i need a particular tool to create it?
All advice will be useful and nice.
Thanks.
Nice Regards
|
|
|
|
|
Using VS, connnect to your DB, expand it, just above the tables there is an option of diagrams, right click it and choose new diagram, then add all your tables
You an also do the same from sql server management studio
Alexei Rodriguez
|
|
|
|
|
Hi Mr.Alexei,
thanks to reply me, i knew how make the diagram with VS but i don't know how make the diagram with Data Type or better i wish display in the Diagram for each field the kind of Data Type for example:
COLUMN NAME__________________DATA TYPE
- CustomerID___________________ int
- Name_______________________nvarchar(20)
- Address_____________________nvarchar(30)
....and so on.
Is it possible to create this kind of Diagram?
Thanks so much.
|
|
|
|
|
Piece of cake dude
Once you have the diagram:
Select all your tables (in the diagram
Right click over one table
Select Table View
Choose Standard or custom (You can also modify custom and define the info you want to show)
Alexei Rodriguez
|
|
|
|
|
Also, i cant beleive you just finished designing a big DB and you dont know how to create a diagram :p
Alexei Rodriguez
|
|
|
|
|
Next question will be "Why can't I save the diagram, I get a foriengn key violation"
And then what is a clustered index.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
Im still fairly new to stored procedures but have reached a point where i need to use a conditional statement. At present i have to code below which will not compile due to various errors.
Please can you help me understand how i can make this work. Thanks;
CREATE PROCEDURE web.InsertManualAddressBook
(
@tmp_custID bigint
)
AS
BEGIN
IF EXISTS (SELECT * FROM tbl_AddressBookMaster WHERE addMaster_UserId = @tmp_custID AND addMaster_Title = 'Default')=1
SELECT * FROM tbl_AddressBookMaster WHERE addMaster_UserId = @tmp_custID
DELETE FROM tbl_AddressBookAddresses WHERE tbl_AddressBookAddresses.adds_ABMId = tbl_AddressBookMaster.addMaster_Key;
ELSE
'Do something else
END
Essentially what i want to do is;
1)Check if a record exists based on the input @tmp_custID(bigint) value.
2)If a record exists check a second table for records where the 'addMaster_UserID' column matches the 'addMaster_Key' of the initial table queried. Delete this records.
3)If the condition in item 1 isnt met, do something else.
Any help is correcting the above statement would be really appreciated.
Thanks.
|
|
|
|