CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS MICROSOFT ASP.NET 2.0 DETAILS
Question :
1.How to enter same record twice in target table? give me syntax.

2. How to get particular record from the table in informatica?

3.How to create primary key only on odd numbers?

4. how to get the records starting with particular letter like A in informatica?




Category ASP.NET 2.0 Interview Questions
Rating (5.0) By 18 users
Added on 8/18/2006
Views 1397
Rate it!
Answers:

Declere Target table twice in the mapping and move the output to both the target tables.



Ans4:

select name from tablename where name like
'A%';



 Posted by: Mukesh    

Contact Mukesh  Contact Mukesh

bowlaaaaaaaaaaaa! is the correct answer



 Posted by: mathey    

Contact mathey  Contact mathey

ans 4
select * from emp where ename like 'A%'



 Posted by: kiran    

Contact kiran  Contact kiran

2. select * from <tablename> where <coloumn-name1>='<value>'and <coloumn-name2>='<value>'.........



 Posted by: Devendra Singh Bhadoriya    

Contact Devendra Singh Bhadoriya  Contact Devendra Singh Bhadoriya

1.How to enter same record twice in target table? give me syntax.
A)To insert a same record in to the target table twice, use the fill method of dataadapter twice and update the dataset
add the following lines of code

sqlconnection cn = new sqlconnection("ur connection string");
Sqldataadapter da= new sqldataadapter("select * from sometable",cn);
sqlcommandbuilder cmb = new sqlcommandbuilder(da);
dataset ds= new dataset();
da.fill(ds,"sometable");
ds.tables[0].constraints.add("usr_pk",ds.tables[0].columns[0],true);
datarow row;
row=ds.tables[0].newrow();
for(int i=o;i<2;i++)
{i++;
row[0]=value;
ds.tables[0].rows.add(row);
da.update(ds.tables[0]);



 Posted by: mahesh    

Contact mahesh  Contact mahesh


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
How do you call procedures in datastage?

View Answer
what is the difference between a defect and an enhancement?

View Answer
What is smoke testing?
View Answer
Distinguish the differences between client-side and server-side data validations in web pages.

View Answer
How to rename a table using sql queries?

View Answer
Can a .NET web application consume Java web service ?

View Answer
Name some of the Microsoft Application Blocks. Have you used any? Which ones?

View Answer
How many classes can a single .NET DLL contain?

View Answer
Which control would you use if you needed to make sure the values in two different controls matched?

View Answer
How is a property designated as read-only?

View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL ASP.NET 2.0 Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/10916/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.78