How can I return a comma delimited list of codes for each client, to a temp field in the results of a select statement in a stored procedure?
Is it posible to get a comma delimited list into a temp field of a temp table?
I have a table tblCodes that has the following fields ClientID, CodeID
I have a table tblCodeLookup that has the following fields CodeID, CodeDecription
I need to get a temp table with two fields ClientID and a field that holds a comma delimited list of CodeDescriptions for each clientID. Maybe the tmp fiel would be named ClientsCodes Select clientID, ClientsCodes
I am creating a BLOG and Forum, and am using tags similar to this and most other sites, I just need to know how to retrieve the tags from a culmn if the tags are stored with commas separating them, I am sure I read about it somewhere but was unable to find it.so the column would be:
tag1, tag2, tag3, etc.....
I would need to be able to:
1. Store tags, and add-on to tags already in the column
I have data that I am trying to read in from a .csv file. Some of my fields however have their own commas. For instance my file may look like:
Name, City, Country
And my data may have:
Walmart, New York, USA
"My store, and more", New York, USA
If you look at the second row of my data you will notice the first field has a comma in it: "My Store, and more".
It is surrounded by double quotes to distinguish that the field includes the comma, but when I read it into a table in MSSQL it splits that field into two. How do I tell MSSQL to leave everything in the double quotes as one field?
I Have many entries that have this 'HK' as a kind of prefix. in SQL Server table while i have nothing against HK, the sales person would like this HK removed. the name of this column is categoryname
i published my site to server and login users with session but this session remove after 30 seconds !!! and user page send error i used this code in web.config buy session remove again
I have records that were inserted into a sql server 2005 table using a stored procedure. I now need to remove or delete these records. The only problem is that the table does not contain a relevant column to define in my where clause when using delete command.
Is there any way I can identify these records for deletion.
I am making a form that reads/writes to a table called Contract. Contract has a field called BuyerID, which is used to store the PK of a record in the Organization table, OrganizationID. When I first tried saving my form, I got the following exception:
The record can't be added or changed. Referential integrity rules require a related record in table 'Organization'. The transaction ended in the trigger. The batch has been aborted.
When I choose a value for the field that gets assigned to BuyerID, I don't get an exception. I don't want this field to be required, so I need to remove the referential integrity rule. I thought there must be a foreign key constraint specifying that BuyerID points to Organization.OrganizationID. However, running
[Code]....
shows that the only constraint for BuyerID is a default value of 0. how to remove the referential integrity rule?
I'm debugging a site that is deployed to the site root on the production server, but in my local copy, under the built-in, debugging web server, the URL's include the 'site name'. E.g. my local site is 'PVLive', so all URL's are 'localhost:nnnnn/PVLive/mmmm.aspx'. Certain URL's are hard coded in the site's pages to use paths relative to the root, e.g. I get errors when code tries to redirect to 'localhost:nnnnn/Index.aspx'.
Can I do something to keep the 'PVLive' site name out of the URL's?
I'm using SQLSERVER 2005, In "Connect to Server" window I want to remove some all server names (like cookies in Textbox) which I used. When I click on this dropdown it listing all server names. I want to remove these.
When i request a page using browser / AJAX request i see lot of spaces and newlines which i think must be adding some overhead for retrieving the response as they too belong to characters means bytes and size. right ?
Is there some way it can be removed while sending from the server ? how ? (I am using IIS and asp.net for development)
I have created a custom gridview that show "Select All | Clear All" hyper links in header to select the checkboxes in the gridview. That means that I have added these two hyperlink controls to the gridview header and am not showing the actual column headers.
[Code]....
Now, I want to remove the border that is displayed on the header row. How can I remove it? I tried th.BorderStyle = BorderStyle.None; but it didn't work. I need gridlines in the data rows but the header row should not have any border.
I have created a custom gridview that show "Select All | Clear All" hyper links in header to select the checkboxes in the gridview. That means that I have added these two hyperlink controls to the gridview header and am not showing the actual column headers.
[Code]....
Now, I want to remove the border that is displayed on the header row. How can I remove it? I tried th.BorderStyle = BorderStyle.None; but it didn't work. I need gridlines in the data rows but the header row should not have any border.