Hi,all,may be this is a simple question, but i can't fix it. i can't store rtf format of any unicode string or chinese string into sql database by using sql statement. The unicode string or chinese string is from the richtextbox, i used "rtfData=RichTextBox.Rtf" and tried to insert rtfData int sql database, but i can't. is there any special character i have to deal with in the rtf formatted data?please help,thanks!
well dear sebastian
i have to display the table names in my ibexpert
this is my first time trying to fetch table names and not fields using standard queries.
i have to display in the 1st column the parent tables names and next to them in the second columns the children and the same for the subchildren for each parent..
mm.. lets see how to express this,
i have a parent table called (types)
in it i have many children and sub children tables.
i need to display them in a query where in the 1st column the table types should appear then in the second column the children of that table should appear and in the 3rd column the children of the children tables should appears.
ex: types(1st column)
to be honest i dont know what i need ... its logical to use joins if i want the children of tables to appear but to be honest its an alien query to me... i feel so weak in queries
but ofcourse i cant join all the tables there r so many! there must be a way to cite them all and display them in such way or else my boss wouldnt have told me to do so...
THANK GOD WE ARE UNDERSTANDING EACH OTHER..
look the interbase (ibexpert) doesnt use sys.anything
there must be some sort of other kywords for such database...
this is my main issue. i have allready found sys.datatable_name...and stuff
but the sys is not understood by ibexpert..
i tried to google it ... i found an answer in experts exchange.com
but in order to view the answer i had to pay! and i dont have any credit cards on me...
to be honest no matter if u could help me or not i am so thankful for your support! so thankful for taking time one me like this.
i cant belive the result was under my nose all the time and i didnt see it!
thank you sebastian...
ill never forget your support!
if u got curious ...
the thing i wanted is (you type in google fetch parent child tables interbase) you will get the title article (fetch parent child... uppercased u enter it and you will find what i wanted exactly..)
thank you so much. hop this works.becos it says oracle ...
thank you again
You cannot use an IN with a variable. Either use dynamic sql or, my preferred method, use a function to split the list into a table variable and join on that. A quick google will give you examples, but here is a starter
CREATE FUNCTION [dbo].[fn_DelimitedSplit]
@TextToSplit VARCHAR(8000), @Delimiter VARCHAR(255)
RETURNS @SplitKeyword TABLE (Keyword VARCHAR(8000),seq int identity)
DECLARE @Word VARCHAR(255)
WHILE (CHARINDEX(@Delimiter, @TextToSplit, 1)>0)
SET @Word = SUBSTRING(@TextToSplit, 1 , CHARINDEX(@Delimiter, @TextToSplit, 1) - 1)
SET @TextToSplit = SUBSTRING(@TextToSplit, CHARINDEX(@Delimiter, @TextToSplit, 1) + 1, LEN(@TextToSplit))
INSERT INTO @SplitKeyword(Keyword) VALUES(@Word)
INSERT INTO @SplitKeyword(Keyword) VALUES(@TextToSplit)
Bob Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
Using Visual Web Developer Express and SQL Server 2005 on an XP development machine.
Was using development server in VWDE to view pages, using following connection string:
|add name="RHConnectionString" connectionString="server=MIKE;database=Rotary;Trusted_Connection=True;"/|
Needed to test with SSL. Installed SSL certificate (using your makecert procedure, thanks). Moved web site to IIS and opened in VWDE. Development connection to database works, but pages get Login failed for user 'MIKE\IUSR_MIKE'.
SQL Server configured for Remote Connections and mixed Windows Authentication and SQL Server authentication.
Go to your management Studio. Right click your Server and go to properties. in the Properties go to Security and look at the Options under Server Authentication. and tell us what is selected there.
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."